Modifier and Type | Field and Description |
---|---|
Vector3 |
direction
The ray's unit direction vector.
|
Vector3 |
origin
The ray's point of origin.
|
Constructor and Description |
---|
Ray3()
Creates an empty (invalid) ray.
|
Ray3(Ray3 other)
Copy constructor.
|
Ray3(Vector3 origin,
Vector3 direction)
Creates a ray with the values contained in the supplied origin point and unit direction
vector.
|
Modifier and Type | Method and Description |
---|---|
Vector3 |
direction()
Returns a reference to the ray's unit direction vector.
|
Vector3 |
origin()
Returns a reference to the ray's point of origin.
|
Ray3 |
set(Ray3 other)
Copies the parameters of another ray.
|
Ray3 |
set(Vector3 origin,
Vector3 direction)
Sets the ray parameters to the values contained in the supplied vectors.
|
String |
toString() |
public final Vector3 origin
public final Vector3 direction
public Ray3(Vector3 origin, Vector3 direction)
public Ray3(Ray3 other)
public Ray3()
public Ray3 set(Ray3 other)
public Ray3 set(Vector3 origin, Vector3 direction)
public Vector3 origin()
IRay3
public Vector3 direction()
IRay3
Copyright © 2017. All rights reserved.