public final class Quaternion extends Object
| Constructor and Description |
|---|
Quaternion() |
Quaternion(double x,
double y,
double z,
double w) |
Quaternion(Quaternion quaternion) |
| Modifier and Type | Method and Description |
|---|---|
Quaternion |
conjugate() |
boolean |
equals(Object obj) |
static Quaternion |
fromAxisAngle(Vector3 axis,
double angle) |
double |
getW() |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
Quaternion |
multiply(Quaternion rhs) |
Quaternion |
normalized() |
static Quaternion |
rotate(Vector3 from,
Vector3 to) |
String |
toString() |
public Quaternion()
public Quaternion(Quaternion quaternion)
public Quaternion(double x,
double y,
double z,
double w)
public double getX()
public double getY()
public double getZ()
public double getW()
public final Quaternion multiply(Quaternion rhs)
public final Quaternion normalized()
public final Quaternion conjugate()
public static Quaternion fromAxisAngle(Vector3 axis, double angle)
public static Quaternion rotate(Vector3 from, Vector3 to)
Copyright © 2014. All Rights Reserved.