struct Ray

book_4_sparkGenerated
code_blocksInput

Description

The Ray struct represents a ray in 3D space, defined by an origin and a direction. It is a value type and is sealed, meaning it cannot be inherited. This struct is commonly used in graphics and physics calculations to represent a line extending infinitely in one direction from a starting point.

Members

Instance Members

Member NameSummary
PositionOrigin of the ray.
ForwardDirection of the ray.
ToLocalTransforms the ray to local space using the given transform.
ToWorldTransforms the ray to world space using the given transform.
ProjectProjects the ray forward by a specified distance.