cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes
Class Vector3D
java.lang.Object
cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.Vector3D
public class Vector3D
- extends Object
A vector in 3D space of unreal.
- Author:
- Martin Cerny
Constructor Summary |
Vector3D(float x,
float y,
float z)
|
ZERO
public static final Vector3D ZERO
X_AXIS
public static final Vector3D X_AXIS
Y_AXIS
public static final Vector3D Y_AXIS
Z_AXIS
public static final Vector3D Z_AXIS
Vector3D
public Vector3D(float x,
float y,
float z)
getX
public float getX()
getY
public float getY()
getZ
public float getZ()
multiply
public Vector3D multiply(float a)
divide
public Vector3D divide(float a)
add
public Vector3D add(Vector3D p)
subtract
public Vector3D subtract(Vector3D p)
negateX
public Vector3D negateX()
negateY
public Vector3D negateY()
negateXandY
public Vector3D negateXandY()
switchXandY
public Vector3D switchXandY()
negate
public Vector3D negate()
crossProduct
public Vector3D crossProduct(Vector3D p)
dotProduct
public float dotProduct(Vector3D v)
length
public double length()
normalize
public Vector3D normalize()
centroid
public static Vector3D centroid(Vector3D... points)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.