Ray
in package
Table of Contents
Properties
- $direction : Vec3
- $origin : Vec3
Methods
- __construct() : mixed
- Constructs a Ray
- copy() : Ray
- pointAt() : Vec3
Properties
$direction
public
Vec3
$direction
$origin
public
Vec3
$origin
Methods
__construct()
Constructs a Ray
public
__construct(Vec3 $origin, Vec3 $direction) : mixed
Parameters
- $origin : Vec3
- $direction : Vec3
copy()
public
copy() : Ray
Return values
RaypointAt()
public
pointAt(float $distance) : Vec3
Parameters
- $distance : float