Logo


search API (or start typing anywhere)


Ray

differ.shapes.Ray

A ray with a start, end, direction and infinite state for collision queries.


class
meta: @:keep


   

Members


end
end : differ.math.Vector
The end point of the ray.
infinite
infinite : differ.shapes.InfiniteState
Whether or not the ray is infinite.
start
start : differ.math.Vector
The start point of the ray.

Properties


dir
dir : differ.math.Vector
The direction of the ray. Returns a cached vector, so modifying it will affect this instance. Updates only when the dir value is accessed.

Methods


new
new(_start:differ.math.Vector, _end:differ.math.Vector, _infinite:differ.shapes.InfiniteState) : Void
Create a new ray with the start and end point, which determine the direction of the ray, and optionally specifying that this ray is infinite in some way.