org.nlogo.api
Class Vect
java.lang.Object
org.nlogo.api.Vect
public class Vect
- extends Object
Constructor Summary |
Vect(double x,
double y,
double z)
|
Vect
public Vect(double x,
double y,
double z)
x
public double x()
y
public double y()
z
public double z()
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
magnitude
public double magnitude()
invert
public Vect invert()
add
public Vect add(Vect v)
subtract
public Vect subtract(Vect v)
toArray
public double[] toArray()
correct
public Vect correct()
normalize
public Vect normalize()
rotateX
public Vect rotateX(double delta)
rotateY
public Vect rotateY(double delta)
rotateZ
public Vect rotateZ(double delta)
transform
public Vect transform(Matrix3D trans)
dot
public double dot(Vect v)
cross
public Vect cross(Vect v)
angleTo
public double angleTo(Vect v)
axisTransformation
public static Vect axisTransformation(Vect a,
Vect u,
Vect v,
Vect w)
toVectors
public static Vect[] toVectors(double headingDegrees,
double pitchDegrees,
double rollDegrees)
toAngles
public static double[] toAngles(Vect forward,
Vect right)