|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcamera3d.MathUtility
Utility for performing some common vector math operations.
| Method Summary | |
static void |
buildPlaneFromPointAndNormal(javax.vecmath.Vector4d plane,
javax.vecmath.Point3d planePoint,
javax.vecmath.Vector3d planeNormal)
Creates the description of a plane that contains the point given as input and whose normal is determined by the input Vector3d argument. |
static void |
buildPlaneFromPoints(javax.vecmath.Vector4d plane,
javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2,
javax.vecmath.Point3d p3)
Creates the description of a plane that contains the three points given as input. |
static double |
computeIntersection(javax.vecmath.Tuple3d result,
javax.vecmath.Point3d linePoint,
javax.vecmath.Vector3d lineVector,
javax.vecmath.Point3d planePoint,
javax.vecmath.Vector3d planeNormal)
|
static double |
computeIntersection(javax.vecmath.Tuple3d result,
javax.vecmath.Point3d linePoint,
javax.vecmath.Vector3d lineVec,
javax.vecmath.Vector4d plane)
Finds the intersection point between a plane and a line. |
static void |
eulerToQuat(double roll,
double pitch,
double yaw,
javax.vecmath.Quat4d quat)
Transforms euler angles into the corresponding rotation quaternion. |
static void |
generateRotQuat(TransformScope axis,
double deltaAngle,
javax.vecmath.Quat4d rotQuat)
Description of the Method |
static void |
planeToPointAndNormal(javax.vecmath.Vector4d plane,
javax.vecmath.Vector3d planeNormal,
javax.vecmath.Point3d planePoint)
Converts a plane in the form Ax + By + Cz + D = 0 to a plane represented by a normal and a point |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void buildPlaneFromPoints(javax.vecmath.Vector4d plane,
javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2,
javax.vecmath.Point3d p3)
plane - receives the plane equation parameters.p1 - first point belonging to the plane.p2 - second point belonging to the plane.p3 - third point belonging to the plane.
public static void buildPlaneFromPointAndNormal(javax.vecmath.Vector4d plane,
javax.vecmath.Point3d planePoint,
javax.vecmath.Vector3d planeNormal)
plane - receives the plane equation parameters.planePoint - point belonging to the plane.planeNormal - vector normal to desired plane.
public static double computeIntersection(javax.vecmath.Tuple3d result,
javax.vecmath.Point3d linePoint,
javax.vecmath.Vector3d lineVec,
javax.vecmath.Vector4d plane)
result - receives the resultant intersection point.linePoint - point belonging to linelineVec - line directionplane - Vector4d equation of the plane in the form Ax + By + Cz
+ D = 0
public static void planeToPointAndNormal(javax.vecmath.Vector4d plane,
javax.vecmath.Vector3d planeNormal,
javax.vecmath.Point3d planePoint)
plane - is the Ax + By + Cz + D representation of the planplaneNormal - is the resulting plane normal (Bet you could've
guessed that :) )planePoint - is a point belonging to the plane
public static double computeIntersection(javax.vecmath.Tuple3d result,
javax.vecmath.Point3d linePoint,
javax.vecmath.Vector3d lineVector,
javax.vecmath.Point3d planePoint,
javax.vecmath.Vector3d planeNormal)
result - is the point to contain the resultlinePoint - andlineVector - are line parameters,planePoint - andplaneNormal - are the parameters of the plane
public static void generateRotQuat(TransformScope axis,
double deltaAngle,
javax.vecmath.Quat4d rotQuat)
axis - Description of the ParameterdeltaAngle - Description of the ParameterrotQuat - Description of the Parameter
public static void eulerToQuat(double roll,
double pitch,
double yaw,
javax.vecmath.Quat4d quat)
roll - rotation around x axis (radians).pitch - rotation around y axis (radians).yaw - rotation around z axis (radians).quat - Description of the Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||