public class Rayf extends Object
| Modifier and Type | Field and Description |
|---|---|
float |
dX |
float |
dY |
float |
dZ |
float |
oX |
float |
oY |
float |
oZ |
| Constructor and Description |
|---|
Rayf()
Create a new
Rayf with origin (0, 0, 0) and no direction. |
Rayf(float oX,
float oY,
float oZ,
float dX,
float dY,
float dZ)
Create a new
Rayf with the given origin and direction. |
Rayf(Rayf source)
Create a new
Rayf as a copy of the given source. |
Rayf(Vector3fc origin,
Vector3fc direction)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
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. |
public float oX
public float oY
public float oZ
public float dX
public float dY
public float dZ
public Rayf()
Rayf with origin (0, 0, 0) and no direction.public Rayf(Rayf source)
Rayf as a copy of the given source.source - the Rayf to copy frompublic Rayf(Vector3fc origin, Vector3fc direction)
origin - the origin of the raydirection - the direction of the raypublic Rayf(float oX,
float oY,
float oZ,
float dX,
float dY,
float dZ)
Rayf 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 withCopyright © 2015–2019 JOML. All rights reserved.