| java.lang.Object org.jdesktop.j3d.utils.math.Math3D
Math3D | public class Math3D (Code) | | |
Method Summary | |
public static boolean | encloses(Bounds parent, Bounds child) | public static boolean | encloses(BoundingBox parent, BoundingSphere child) | public static boolean | encloses(BoundingBox parent, BoundingBox child) | public static boolean | encloses(BoundingSphere parent, BoundingBox child) | public static boolean | encloses(BoundingSphere parent, BoundingSphere child) | public static boolean | epsilonEquals(float f1, float f2, float epsilon) | public static boolean | epsilonEquals(Tuple3f t1, Tuple3f t2, float epsilon) | public static float | pointLineDistance(Point3f lineStart, Point3f lineEnd, Point3f point) Calculates the distance of a point from a line. | public static void | toEuler(Matrix3d matrix, Vector3d euler) |
encloses | public static boolean encloses(BoundingBox parent, BoundingBox child)(Code) | | Returns true if the parent bounds fully encloses the child
|
epsilonEquals | public static boolean epsilonEquals(float f1, float f2, float epsilon)(Code) | | |
epsilonEquals | public static boolean epsilonEquals(Tuple3f t1, Tuple3f t2, float epsilon)(Code) | | |
pointLineDistance | public static float pointLineDistance(Point3f lineStart, Point3f lineEnd, Point3f point)(Code) | | Calculates the distance of a point from a line.
x1----------------------------x2
|
| distance
|
point
The formula is
d = |(x2-x1) x (x1-p)|
------------------
|x2-x1|
Where p=point, lineStart=x1, lineEnd=x2
|
toEuler | public static void toEuler(Matrix3d matrix, Vector3d euler)(Code) | | Converts the Matrix into Euler angles (roll, pitch, yaw )
|
|
|