public class Vector3DUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
CENTER |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
FORWARD |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
ONE |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
abs(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
calculateNormal(Face face) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
cartesianProduct(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
ceil(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
floor(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
max(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
Calculates maximum of each coordinate.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
midpoint(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
Calculates middle point between two vectors.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
min(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
Calculates minimum of each coordinate.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
perpendicular(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
random() |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
reciprocal(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
Calculates one by vectos.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
round(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
xCross(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
zCross(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec) |
public static final org.apache.commons.math3.geometry.euclidean.threed.Vector3D ONE
public static final org.apache.commons.math3.geometry.euclidean.threed.Vector3D CENTER
public static final org.apache.commons.math3.geometry.euclidean.threed.Vector3D FORWARD
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D random()
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D max(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
a - first vector.b - second vector.public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D min(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
a - first vector.b - second vector.public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D cartesianProduct(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D xCross(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D zCross(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D midpoint(org.apache.commons.math3.geometry.euclidean.threed.Vector3D a,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D b)
a - first vector.b - second vector.public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D reciprocal(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
vec - vector to be reciprocated.public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D perpendicular(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D round(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D ceil(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D floor(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D abs(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec)
public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D calculateNormal(Face face)