|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphics3d.ArcBallMath
Original ArcBall C code from Ken Shoemake, Graphics Gems IV, 1993.
Method Summary | |
static Quaternion |
axisToQuaternion(Vector3 axis,
double phi,
Quaternion r)
Given an axis and angle, compute quaternion, return null if axis cannot be normalized |
static Quaternion |
buildQuaternion(double size,
Vector3 from,
Vector3 to,
Quaternion r)
Ok, simulate a track-ball. |
static Vector3 |
constrainToAxis(Vector3 loose,
Vector3 axis,
Vector3 onPlane)
return sphere point to be perpendicular to axis. |
static int |
nearestConstraintAxis(Vector3 loose,
Vector3[] axes)
|
static Vector3 |
projectToSphere(double r,
double x,
double y,
Vector3 v)
Project an x,y pair onto a sphere of radius r OR a hyperbolic sheet if we are away from the center of the sphere. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Vector3 projectToSphere(double r, double x, double y, Vector3 v)
public static Vector3 constrainToAxis(Vector3 loose, Vector3 axis, Vector3 onPlane)
public static int nearestConstraintAxis(Vector3 loose, Vector3[] axes)
public static Quaternion buildQuaternion(double size, Vector3 from, Vector3 to, Quaternion r)
It is assumed that the arguments to this routine are in the range (-1.0 ... 1.0)
public static Quaternion axisToQuaternion(Vector3 axis, double phi, Quaternion r)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |