|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwoptics.mathutils.VectorUtils
public class VectorUtils
Constructor Summary | |
---|---|
VectorUtils()
|
Method Summary | |
---|---|
static processing.core.PVector |
rotateArbitaryAxis(processing.core.PVector P,
processing.core.PVector A,
float theta)
Rotates a given vector about an arbitrary axis. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VectorUtils()
Method Detail |
---|
public static processing.core.PVector rotateArbitaryAxis(processing.core.PVector P, processing.core.PVector A, float theta)
Equation used in this code is from the book Mathematics for 3D game programming by Eric Lengyel, 2nd Edition, page 78, ISBN 1-58450-277-0.
P
- A
- theta
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |