Ray.originDirection constructor Null safety
Create a ray with an origin
and a direction
.
Implementation
Ray.originDirection(Vector3 origin, Vector3 direction)
: _origin = Vector3.copy(origin),
_direction = Vector3.copy(direction);
Create a ray with an origin
and a direction
.
Ray.originDirection(Vector3 origin, Vector3 direction)
: _origin = Vector3.copy(origin),
_direction = Vector3.copy(direction);