openrndr / org.openrndr.shape / LineSegment3D

LineSegment3D

data class LineSegment3D (source)

Constructors

<init>

LineSegment3D(x0: Double, y0: Double, z0: Double, x1: Double, y1: Double, z1: Double)
LineSegment3D(start: Vector3, end: Vector3)

Properties

direction

val direction: Vector3

end

val end: Vector3

path

val path: Path3D

start

val start: Vector3

Functions

distance

fun distance(query: Vector3): Double

nearest

fun nearest(query: Vector3): Vector3

position

fun position(t: Double): Vector3

split

fun split(t: Double): Array<LineSegment3D>

squaredDistance

fun squaredDistance(query: Vector3): Double

sub

fun sub(t0: Double, t1: Double): LineSegment3D