Line3D

class Line3D(point1: Vector3D, point2: Vector3D, tolerance: Double)

Represents a line in 3D.

Parameters

point1

first point on the line

point2

second point on the line

Constructors

Link copied to clipboard
constructor(point1: Vector3D, point2: Vector3D, tolerance: Double)

Properties

Link copied to clipboard

normalized direction vector

Link copied to clipboard

line point closest to the origin

Functions

Link copied to clipboard
fun distance(point: Vector3D): Double

Returns the distance between this line and a given point.

Link copied to clipboard
fun toLine3DCM(): Line