|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.vecmath.PuReflect
Utility class with static methods to compute reflection and other symmetry matrices.
| Constructor Summary | |
PuReflect()
|
|
| Method Summary | |
static boolean |
makeRotation(PdMatrix mat,
PdVector axis,
double angle)
Assign a (3*3)-rotation matrix to rotate around axis through origin with given angle. |
static PdMatrix |
planeReflect(PdVector a,
PdVector normal)
Generate a (4*4)-matrix to reflect in plane given by base point and plane normal. |
static PdMatrix |
planeReflect(PdVector a,
PdVector b,
PdVector c)
Generate a (4*4)-matrix to reflect in plane given by three vertices on the plane. |
static PdMatrix |
pointReflect(PdVector p)
Generate a (4*4)-matrix to invert space w.r.t. to a given fixed point. |
static PdMatrix |
rotateLine(PdVector base,
PdVector axis)
Generate a (4*4)-matrix to rotate around axis base+t*dir by 180 degrees.
|
static PdMatrix |
rotateLine(PdVector base,
PdVector axis,
double fi)
Generate a (4*4)-matrix to rotate around axis base+t*dir by given angle.
|
static PdMatrix |
scale(PdVector vec)
Generate a (4*4)-matrix to non-uniform scale by a given vector p[i] = p[i] * vec[i]. |
static PdMatrix |
translate(PdVector vec)
Generate a (4*4)-matrix to translate by a given vector p = p + vec. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PuReflect()
| Method Detail |
public static boolean makeRotation(PdMatrix mat,
PdVector axis,
double angle)
mat - Matrix to hold the transformation matrix.axis - direction of rotation axis, need not be normalizedangle - angle in radians about to rotate
public static PdMatrix rotateLine(PdVector base,
PdVector axis)
base+t*dir by 180 degrees.
Parameter base and axis must have dimension greater or equal to three. Only
first three components are used.base - Arbitrary point on rotation axis.axis - Direction of rotation axis, need not be normalized
public static PdMatrix rotateLine(PdVector base,
PdVector axis,
double fi)
base+t*dir by given angle.
Parameter base and axis must have dimension greater or equal to three. Only
first three components are used.base - Arbitrary point on rotation axis.axis - Direction of rotation axis, need not be normalizedangle - Angle in radians about to rotate.
public static PdMatrix planeReflect(PdVector a,
PdVector b,
PdVector c)
a, - b, c Three points on the plane.
public static PdMatrix planeReflect(PdVector a,
PdVector normal)
base - Arbitrary point on plane.normal - Normal vector orthogonal to planepublic static PdMatrix pointReflect(PdVector p)
p - Arbitrary point as inversion center.public static PdMatrix translate(PdVector vec)
p = p + vec.vec - Translation vector.public static PdMatrix scale(PdVector vec)
p[i] = p[i] * vec[i].vec - Scaling vector.
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||