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

Properties

Member NameSummary
PositionOrigin of the ray.
ForwardDirection of the ray.

Methods

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