Example usage for org.apache.commons.math3.geometry.euclidean.threed Line Line

List of usage examples for org.apache.commons.math3.geometry.euclidean.threed Line Line

Introduction

In this page you can find the example usage for org.apache.commons.math3.geometry.euclidean.threed Line Line.

Prototype

public Line(final Vector3D p1, final Vector3D p2) throws MathIllegalArgumentException 

Source Link

Document

Build a line from two points.

Usage

From source file:NewEmptyJUnitTest.java

@Test
public void hello() {
    Line line = new Line(new Vector3D(-1, -1, -1), new Vector3D(1, -1, -1));
    boolean result = line.contains(new Vector3D(2, -1, -1));
    assertTrue(result);/*from  ww  w  . j  a v a 2s .  c  o m*/
}