Skip to main content

RayDirection

class RayDirection

RayDirection controls the direction and origin of Ray.


public class RayDirection

— Constructors (2) —

ConstructorDescription
RayDirection()Creates a new instance of RayDirection.
RayDirection(Vector3 origin, Vector3 direction)Creates a new instance of RayDirection with its origin and direction defined to be the arguments.

— Methods (4) —

NameDescription
Vector3 getOrigin()Returns the current origin of the RayDirection.
void setOrigin(Vector3 vector)Sets the current origin of RayDirection.
Vector3 getDirection()Returns the current direction of the RayDirection.
void setDirection(Vector3 vector)Sets the current direction of the RayDirection.