|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectEigenMeat.EigenMaze.Math3D
3d math methods.
| Constructor Summary | |
Math3D()
Default constructor. |
|
| Method Summary | |
static Vect3d |
calculateNormal(Vect3d v1,
Vect3d v2,
Vect3d v3)
Calculates normal of a triangle. |
static boolean |
doesLineIntersectAABCube(Vect3d cen,
float radius,
Vect3d p1,
Vect3d p2)
Checks to see if line intersects an axis aligned bounding cube. |
static Vect3d |
getCollisionPointWithPlane(Plane plane,
Vect3d point,
Vect3d direction)
Gets the collision point between a plane and a vector. |
static Vect3d |
getCollisionPointWithPlane(Vect3d planeNormal,
float distance,
Vect3d point,
Vect3d direction)
Gets the collision point between a plane and a vector. |
static float |
getPlaneDistance(Vect3d planeNormal,
Vect3d pointOnPlane)
Get plane distance to the origin of a specified plane. |
static float |
getPointDistanceFromPlane(Vect3d planeNormal,
float distance,
Vect3d point)
Get the distance a point is from a plane. |
static boolean |
isPointInFrontOfPlane(Vect3d planeNormal,
float distance,
Vect3d point)
Checks to see if a point is in front of a plane. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Math3D()
| Method Detail |
public static float getPlaneDistance(Vect3d planeNormal,
Vect3d pointOnPlane)
planeNormal - normal of the planepointOnPlane - a point of on the plane
public static float getPointDistanceFromPlane(Vect3d planeNormal,
float distance,
Vect3d point)
planeNormal - normal of a planedistance - plane distance of the planepoint - to check
public static boolean isPointInFrontOfPlane(Vect3d planeNormal,
float distance,
Vect3d point)
planeNormal - normal of planedistance - plane distance of planepoint - point to check
public static Vect3d getCollisionPointWithPlane(Plane plane,
Vect3d point,
Vect3d direction)
plane - a planepoint - starting point of vectordirection - direction of vector
public static Vect3d getCollisionPointWithPlane(Vect3d planeNormal,
float distance,
Vect3d point,
Vect3d direction)
planeNormal - plane normaldistance - plane distancepoint - starting point of vectordirection - vector direction
public static boolean doesLineIntersectAABCube(Vect3d cen,
float radius,
Vect3d p1,
Vect3d p2)
cen - cube centerradius - cube sizep1 - start point of linep2 - end point of line
public static Vect3d calculateNormal(Vect3d v1,
Vect3d v2,
Vect3d v3)
v1 - first vertexv2 - second vertexv3 - third vertex
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||