Ray2D

data class Ray2D : IsAlmostEquals<Ray2D>

Represents an infinite Ray starting at point in the specified direction with an angle

Constructors

Link copied to clipboard
constructor(point: Point, direction: Vector2D, unit: Unit = Unit)

Constructs a Ray starting from point in the specified direction

constructor(point: Point, angle: Angle)

Constructs a Ray starting from point in the specified angle

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Angle between two points

Link copied to clipboard

Normalized direction of the ray starting at point

Link copied to clipboard

Starting point

Functions

Link copied to clipboard
open override fun isAlmostEquals(other: Ray, epsilon: Double): Boolean

Checks if this and otherare equals with an epsilon difference

Link copied to clipboard
fun Ray.toBVH(out: BVHIntervals = BVHIntervals(2)): BVHRay
Link copied to clipboard
fun toLine(length: Double = 100000.0): Line

Converts this Ray into a Line of a specific length starting by point

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Checks if this and otherare equals with an epsilon tolerance