class Line3D: Any

Represents a line in 3D.

Fields

Name Description
val origin: /** line point closest to the origin */

line point closest to the origin

val direction: /** normalized direction vector */

normalized direction vector

Constructors

<init>

constructor(point1: Vector3D, point2: Vector3D, tolerance: Double)

Represents a line in 3D.

Parameters

Name Description
point1: Vector3D

first point on the line

point2: Vector3D

second point on the line

tolerance: Double

Methods

distance

fun distance(point: Vector3D): Double

Returns the distance between this line and a given point.

Parameters

Name Description
point: Vector3D

point for which the distance shall be calculated

ReturnValue

Name Description
Double

distance between this and the point

toLine3DCM

fun toLine3DCM(): _line3D

ReturnValue

Name Description
_line3D