Segment3

data class Segment3(val start: Vec3, val end: Vec3) : Segment<Vec3> (source)

Represents a segment in 3D space defined by a start and end point.

Constructors

Link copied to clipboard
constructor(start: Vec3, end: Vec3)

Properties

Link copied to clipboard
open override val end: Vec3

The ending point of the segment.

Link copied to clipboard
open override val start: Vec3

The starting point of the segment.

Functions

Link copied to clipboard
open override fun intersection(other: Segment<Vec3>, equivalence: DoubleEquivalence): IntersectionData<Vec3>

Compute the intersection of this segment with another segment.

Link copied to clipboard
open override fun length(): Double

Get the length of the segment.

Link copied to clipboard
open override fun reverse(): Segment3

Reverses the segment, swapping its start and end points.

Link copied to clipboard
open override fun transform(transformer: Transformer<Vec3>): Segment3

Applies a transformation to the endpoints of this segment.