|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.algorithms.graphics.GeomUtil
public class GeomUtil
The Class GeomUtil.
Constructor Summary | |
---|---|
GeomUtil()
|
Method Summary | |
---|---|
static double |
angle(Point3f v0,
Point3f v1,
Point3f v2)
Angle. |
static double |
angle(Tuple2d p1,
Tuple2d p2)
Angle. |
static double |
angle(Tuple3f p1,
Tuple3f p2)
Angle. |
static Point3f |
angleBisect(Point3f p1,
Point3f p2,
Point3f p3)
Angle bisect. |
static double |
cosAngle(Vector2d v1,
Vector2d v2)
Cos angle. |
static double |
cosAngle(Vector3f v1,
Vector3f v2)
Cos angle. |
static double |
crossProduct(Tuple2d u,
Tuple2d v)
Cross product. |
static double |
determinant(double fX0,
double fY0,
double fZ0,
double fX1,
double fY1,
double fZ1,
double fX2,
double fY2,
double fZ2)
Determinant. |
static double |
determinant(double fX0,
double fY0,
double fZ0,
double fW0,
double fX1,
double fY1,
double fZ1,
double fW1,
double fX2,
double fY2,
double fZ2,
double fW2,
double fX3,
double fY3,
double fZ3,
double fW3)
Determinant. |
static double |
distance(Tuple3d p1,
Tuple3d p2)
Distance. |
static double |
distance(Tuple3f p1,
Tuple3d p2)
Distance. |
static double |
distance(Tuple3f p1,
Tuple3f p2)
Distance. |
static double |
dot(Tuple3d u,
Tuple3d v)
Dot. |
static double |
dot(Tuple3f u,
Tuple3f v)
Dot. |
static double |
fractionalAnisotropy(Matrix m)
Fractional anisotropy. |
static Vector3f |
interp(Tuple3f v1,
Tuple3f v2,
double t)
Interp. |
static double |
intersectionAngle(Vector3f x1,
Vector3f x2,
Vector3f x3,
Vector3f x4)
Intersection angle. |
static double |
intersectionTime(Tuple2d x1,
Tuple2d v1,
Tuple2d x2,
Tuple2d v2)
Intersection time. |
static Matrix |
jacobianCartesianToSphere(Point3f q1,
Point3f q2,
Point3d q3,
Point2d p1,
Point2d p2,
Point2d p3,
Point2d p)
Jacobian cartesian to sphere. |
static Matrix |
jacobianCartesianToStereo(Point3f q1,
Point3f q2,
Point3d q3,
Point2d p1,
Point2d p2,
Point2d p3)
Jacobian cartesian to stereo. |
static Matrix |
jacobianSphereToStereo(Point2d p)
Jacobian sphere to stereo. |
static Matrix |
jacobianStereoToCartesian(Point3f q1,
Point3f q2,
Point3d q3,
Point2d p1,
Point2d p2,
Point2d p3)
Jacobian stereo to cartesian. |
static Matrix |
jacobianStereoToSphere(Point2d p)
Jacobian stereo to sphere. |
static double |
length(Tuple3d p)
Length. |
static double |
length(Tuple3f p)
Length. |
static double |
maxStretch(Matrix m)
Max stretch. |
static double |
meanDiffusivity(Matrix m)
Mean diffusivity. |
static double |
meanStretch(Matrix m)
Mean stretch. |
static Point3f |
multMatrix(Matrix3d A,
double[] p)
Mult matrix. |
static Point3d |
multMatrix(Matrix3d A,
Point3d p)
Mult matrix. |
static Point3f |
multMatrix(Matrix3d A,
Point3f p)
Mult matrix. |
static Vector3f |
multMatrix(Matrix3d A,
Vector3f p)
Mult matrix. |
static Point3f |
multMatrix(Matrix A,
double[] p)
Mult matrix. |
static Point3f |
multMatrix(Matrix A,
Point3f p)
Mult matrix. |
static Point3d |
multMatrix3d(Matrix3d A,
Point3d p)
Mult matrix3d. |
static Point3d |
multMatrix3d(Matrix3d A,
Point3f p)
Mult matrix3d. |
static void |
normalize(Tuple3d p1)
Normalize. |
static void |
normalize(Tuple3f p1)
Normalize. |
static double |
normalizedAngle(Tuple3f p1,
Tuple3f p2)
Normalized angle. |
static void |
normalizeSqr(Tuple3d p1)
Normalize sqr. |
static void |
normalizeSqr(Tuple3f p1)
Normalize sqr. |
static int |
relationToCircumsphere(Point3f P,
Point3f V0,
Point3f V1,
Point3f V2,
Point3f V3)
Relation to circumsphere. |
static int |
relationToPlane(Point3f rkP,
Point3f rkV0,
Point3f rkV1,
Point3f rkV2)
Relation to plane. |
static Matrix |
rotateInverseMatrix(double theta,
double phi)
Rotate inverse matrix. |
static Matrix |
rotateInverseMatrix(Point3f p)
Rotate inverse matrix. |
static Matrix3d |
rotateInverseMatrix3d(double theta,
double phi)
Rotate inverse matrix3d. |
static Matrix3d |
rotateInverseMatrix3d(Point3f p)
Rotate inverse matrix3d. |
static Matrix |
rotateMatrix(double theta,
double phi)
Rotate matrix. |
static Matrix3d |
rotateMatrix3d(double theta,
double phi)
Rotate matrix3d. |
static Matrix3f |
rotateMatrix3f(double theta,
double phi)
Rotate matrix3f. |
static Vector2d |
slerp(Tuple2d v1,
Tuple2d v2,
double t)
Slerp. |
static Vector3f |
slerp(Tuple3f v1,
Tuple3f v2,
double t)
Slerp. |
static Point2d |
sphereToStereo(Tuple3f p)
Sphere to stereo. |
static double |
sphericalAngle(Vector3d v2,
Vector3d v1,
Vector3d v3)
Spherical angle. |
static double |
sphericalAngle(Vector3f v2,
Vector3f v1,
Vector3f v3)
Spherical angle. |
static Point3f |
stereoToSphere(Tuple2d p)
Stereo to sphere. |
static double |
tanAngle(Tuple3f v0,
Tuple3f v1,
Tuple3f v2)
Tan angle. |
static Point3f |
toCartesian(Point2d r)
To cartesian. |
static Point3f |
toCartesian(Point2f r)
To cartesian. |
static Point3f |
toCartesian(Point3d r)
To cartesian. |
static Vector3f |
toCartesianVector(Point2d r)
To cartesian vector. |
static Point3d |
toSpherical(Tuple3f p)
To spherical. |
static Point2d |
toUnitSpherical(Tuple3f p)
To unit spherical. |
static double |
triangleArea(Point3f v0,
Point3f v1,
Point3f v2)
Triangle area. |
static Point2d[] |
unwrap(Point3f p1,
Point3f p2,
Point3f p3)
Unwrap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeomUtil()
Method Detail |
---|
public static Matrix rotateInverseMatrix(Point3f p)
p
- the p
public static double length(Tuple3f p)
p
- the p
public static double length(Tuple3d p)
p
- the p
public static double distance(Tuple3f p1, Tuple3f p2)
p1
- the p1p2
- the p2
public static double distance(Tuple3f p1, Tuple3d p2)
p1
- the p1p2
- the p2
public static double distance(Tuple3d p1, Tuple3d p2)
p1
- the p1p2
- the p2
public static Matrix rotateInverseMatrix(double theta, double phi)
theta
- the thetaphi
- the phi
public static Matrix3d rotateInverseMatrix3d(Point3f p)
p
- the p
public static Matrix3d rotateInverseMatrix3d(double theta, double phi)
theta
- the thetaphi
- the phi
public static Point3f multMatrix(Matrix A, Point3f p)
A
- the ap
- the p
public static Point3f multMatrix(Matrix A, double[] p)
A
- the ap
- the p
public static Point3f multMatrix(Matrix3d A, double[] p)
A
- the ap
- the p
public static Point3d multMatrix3d(Matrix3d A, Point3f p)
A
- the ap
- the p
public static Point3d multMatrix3d(Matrix3d A, Point3d p)
A
- the ap
- the p
public static Point3f multMatrix(Matrix3d A, Point3f p)
A
- the ap
- the p
public static Vector3f multMatrix(Matrix3d A, Vector3f p)
A
- the ap
- the p
public static Point2d sphereToStereo(Tuple3f p)
p
- the p
public static Point3f stereoToSphere(Tuple2d p)
p
- the p
public static Point3d multMatrix(Matrix3d A, Point3d p)
A
- the ap
- the p
public static Point2d toUnitSpherical(Tuple3f p)
p
- the p
public static Point3d toSpherical(Tuple3f p)
p
- the p
public static Point3f toCartesian(Point2d r)
r
- the r
public static Point3f toCartesian(Point3d r)
r
- the r
public static Point3f toCartesian(Point2f r)
r
- the r
public static double normalizedAngle(Tuple3f p1, Tuple3f p2)
p1
- the p1p2
- the p2
public static void normalize(Tuple3f p1)
p1
- the p1public static void normalize(Tuple3d p1)
p1
- the p1public static void normalizeSqr(Tuple3f p1)
p1
- the p1public static void normalizeSqr(Tuple3d p1)
p1
- the p1public static double angle(Tuple3f p1, Tuple3f p2)
p1
- the p1p2
- the p2
public static double angle(Tuple2d p1, Tuple2d p2)
p1
- the p1p2
- the p2
public static double sphericalAngle(Vector3d v2, Vector3d v1, Vector3d v3)
v2
- the v2v1
- the v1v3
- the v3
public static double sphericalAngle(Vector3f v2, Vector3f v1, Vector3f v3)
v2
- the v2v1
- the v1v3
- the v3
public static Vector3f toCartesianVector(Point2d r)
r
- the r
public static Matrix rotateMatrix(double theta, double phi)
theta
- the thetaphi
- the phi
public static Matrix3d rotateMatrix3d(double theta, double phi)
theta
- the thetaphi
- the phi
public static Matrix3f rotateMatrix3f(double theta, double phi)
theta
- the thetaphi
- the phi
public static Vector3f slerp(Tuple3f v1, Tuple3f v2, double t)
v1
- the v1v2
- the v2t
- the t
public static Vector3f interp(Tuple3f v1, Tuple3f v2, double t)
v1
- the v1v2
- the v2t
- the t
public static Vector2d slerp(Tuple2d v1, Tuple2d v2, double t)
v1
- the v1v2
- the v2t
- the t
public static Point2d[] unwrap(Point3f p1, Point3f p2, Point3f p3)
p1
- the p1p2
- the p2p3
- the p3
public static double angle(Point3f v0, Point3f v1, Point3f v2)
v0
- the v0v1
- the v1v2
- the v2
public static Point3f angleBisect(Point3f p1, Point3f p2, Point3f p3)
p1
- the p1p2
- the p2p3
- the p3
public static double intersectionTime(Tuple2d x1, Tuple2d v1, Tuple2d x2, Tuple2d v2)
x1
- the x1v1
- the v1x2
- the x2v2
- the v2
public static double intersectionAngle(Vector3f x1, Vector3f x2, Vector3f x3, Vector3f x4)
x1
- the x1x2
- the x2x3
- the x3x4
- the x4
public static double triangleArea(Point3f v0, Point3f v1, Point3f v2)
v0
- the v0v1
- the v1v2
- the v2
public static double tanAngle(Tuple3f v0, Tuple3f v1, Tuple3f v2)
v0
- the v0v1
- the v1v2
- the v2
public static double crossProduct(Tuple2d u, Tuple2d v)
u
- the uv
- the v
public static double dot(Tuple3d u, Tuple3d v)
u
- the uv
- the v
public static double dot(Tuple3f u, Tuple3f v)
u
- the uv
- the v
public static double cosAngle(Vector3f v1, Vector3f v2)
v1
- the v1v2
- the v2
public static double cosAngle(Vector2d v1, Vector2d v2)
v1
- the v1v2
- the v2
public static Matrix jacobianStereoToCartesian(Point3f q1, Point3f q2, Point3d q3, Point2d p1, Point2d p2, Point2d p3)
q1
- the q1q2
- the q2q3
- the q3p1
- the p1p2
- the p2p3
- the p3
public static Matrix jacobianStereoToSphere(Point2d p)
p
- the p
public static Matrix jacobianSphereToStereo(Point2d p)
p
- the p
public static Matrix jacobianCartesianToSphere(Point3f q1, Point3f q2, Point3d q3, Point2d p1, Point2d p2, Point2d p3, Point2d p)
q1
- the q1q2
- the q2q3
- the q3p1
- the p1p2
- the p2p3
- the p3p
- the p
public static double fractionalAnisotropy(Matrix m)
m
- the m
public static double meanDiffusivity(Matrix m)
m
- the m
public static double meanStretch(Matrix m)
m
- the m
public static double maxStretch(Matrix m)
m
- the m
public static Matrix jacobianCartesianToStereo(Point3f q1, Point3f q2, Point3d q3, Point2d p1, Point2d p2, Point2d p3)
q1
- the q1q2
- the q2q3
- the q3p1
- the p1p2
- the p2p3
- the p3
public static double determinant(double fX0, double fY0, double fZ0, double fW0, double fX1, double fY1, double fZ1, double fW1, double fX2, double fY2, double fZ2, double fW2, double fX3, double fY3, double fZ3, double fW3)
fX0
- the f x0fY0
- the f y0fZ0
- the f z0fW0
- the f w0fX1
- the f x1fY1
- the f y1fZ1
- the f z1fW1
- the f w1fX2
- the f x2fY2
- the f y2fZ2
- the f z2fW2
- the f w2fX3
- the f x3fY3
- the f y3fZ3
- the f z3fW3
- the f w3
public static double determinant(double fX0, double fY0, double fZ0, double fX1, double fY1, double fZ1, double fX2, double fY2, double fZ2)
fX0
- the f x0fY0
- the f y0fZ0
- the f z0fX1
- the f x1fY1
- the f y1fZ1
- the f z1fX2
- the f x2fY2
- the f y2fZ2
- the f z2
public static int relationToCircumsphere(Point3f P, Point3f V0, Point3f V1, Point3f V2, Point3f V3)
P
- the pV0
- the v0V1
- the v1V2
- the v2V3
- the v3
public static int relationToPlane(Point3f rkP, Point3f rkV0, Point3f rkV1, Point3f rkV2)
rkP
- the rk prkV0
- the rk v0rkV1
- the rk v1rkV2
- the rk v2
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |