public class Rayd extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
double |
dX
The x coordinate of the ray's direction.
|
double |
dY
The y coordinate of the ray's direction.
|
double |
dZ
The z coordinate of the ray's direction.
|
double |
oX
The x coordinate of the ray's origin.
|
double |
oY
The y coordinate of the ray's origin.
|
double |
oZ
The z coordinate of the ray's origin.
|
| Constructor and Description |
|---|
Rayd()
Create a new
Rayd with origin (0, 0, 0) and no direction. |
Rayd(double oX,
double oY,
double oZ,
double dX,
double dY,
double dZ)
Create a new
Rayd with the given origin and direction. |
Rayd(Rayd source)
Create a new
Rayd as a copy of the given source. |
Rayd(org.joml.Vector3dc origin,
org.joml.Vector3dc direction)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
toString()
Return a string representation of this ray.
|
String |
toString(NumberFormat formatter)
Return a string representation of this ray by formatting the vector components with the given
NumberFormat. |
void |
writeExternal(ObjectOutput out) |
public double oX
public double oY
public double oZ
public double dX
public double dY
public double dZ
public Rayd()
Rayd with origin (0, 0, 0) and no direction.public Rayd(Rayd source)
Rayd as a copy of the given source.source - the Rayd to copy frompublic Rayd(org.joml.Vector3dc origin,
org.joml.Vector3dc direction)
origin - the origin of the raydirection - the direction of the raypublic Rayd(double oX,
double oY,
double oZ,
double dX,
double dY,
double dZ)
Rayd with the given origin and direction.oX - the x coordinate of the ray's originoY - the y coordinate of the ray's originoZ - the z coordinate of the ray's origindX - the x coordinate of the ray's directiondY - the y coordinate of the ray's directiondZ - the z coordinate of the ray's directionpublic String toString()
This method creates a new DecimalFormat on every invocation with the format string "0.000E0;-".
public String toString(NumberFormat formatter)
NumberFormat.formatter - the NumberFormat used to format the vector components withpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2020 JOML. All rights reserved.