Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Public Attributes | List of all members
Chunks.Geometry.Ray Struct Reference

Describes a point being projected along a line a specific direction. More...

Public Member Functions

 Ray (Vector origin, Vector direction)
 Constructs a new Ray with the given starting position and direction of travel. More...
 
Vector GetPoint (float delta)
 Gets a point along the ray delta units from the origin. More...
 

Public Attributes

readonly Vector Origin
 Starting point of the ray. More...
 
readonly Vector Direction
 Direction of travel. More...
 

Detailed Description

Describes a point being projected along a line a specific direction.

Constructor & Destructor Documentation

Chunks.Geometry.Ray.Ray ( Vector  origin,
Vector  direction 
)

Constructs a new Ray with the given starting position and direction of travel.

Parameters
originStarting position
directionDirection of travel

Member Function Documentation

Vector Chunks.Geometry.Ray.GetPoint ( float  delta)

Gets a point along the ray delta units from the origin.

Parameters
deltaDistance along the ray of the point

Member Data Documentation

readonly Vector Chunks.Geometry.Ray.Direction

Direction of travel.

readonly Vector Chunks.Geometry.Ray.Origin

Starting point of the ray.


The documentation for this struct was generated from the following file: