public interface VectorTransformer3d
| Modifier and Type | Method and Description |
|---|---|
VectorTransformer3d |
copy()
Creates and returns a copy of this transformer.
|
void |
inverseTransformCovec(Vector3d cr,
Vector3d c0)
Applies an inverse transform to covector
c0 and places the
result in cr. |
void |
inverseTransformPnt(Vector3d pr,
Vector3d p0)
Applies an inverse transform to point
p0 and places the
result in pr. |
void |
inverseTransformVec(Vector3d vr,
Vector3d v0)
Applies an inverse transform to vector
v0 and places the
result in vr. |
boolean |
isAffine()
Returns
true if this transformer implements a linear affine
transform. |
boolean |
isRigid()
Returns
true if this transformer implements a linear
rigid transform. |
java.lang.String |
toString(java.lang.String fmtStr)
Returns a string representation of this transformer.
|
void |
transformCovec(Vector3d cr,
Vector3d c0)
Transforms a covector
c0 and places the result in
cr. |
void |
transformPnt(Vector3d pr,
Vector3d p0)
Transforms point
p0 and places the result in
pr. |
void |
transformVec(Vector3d vr,
Vector3d v0)
Transforms vector
v0 and places the result in
vr. |
void transformPnt(Vector3d pr, Vector3d p0)
p0 and places the result in
pr.pr - returns the transformed pointp0 - point to be transformedvoid transformVec(Vector3d vr, Vector3d v0)
v0 and places the result in
vr.vr - returns the transformed vectorv0 - vector to be transformedvoid transformCovec(Vector3d cr, Vector3d c0)
c0 and places the result in
cr. If a vector is transformed linearly according to
vr = A v0,then the covector will be transformed according to
-1 T
cr = A c0,
Normal vectors and gradients are generally transformed as covectors.
In the case of normals, the application will need to normalize the
result if this transformation is not rigid.cr - returns the transformed covectorc0 - normal to be transformedvoid inverseTransformPnt(Vector3d pr, Vector3d p0)
p0 and places the
result in pr.pr - returns the transformed pointp0 - point to be transformedvoid inverseTransformVec(Vector3d vr, Vector3d v0)
v0 and places the
result in vr.vr - returns the transformed vectorv0 - vector to be transformedvoid inverseTransformCovec(Vector3d cr, Vector3d c0)
c0 and places the
result in cr. See transformCovec(maspack.matrix.Vector3d, maspack.matrix.Vector3d) for more
details about covector transformation.cr - returns the transformed normalc0 - normal to be transformedboolean isRigid()
true if this transformer implements a linear
rigid transform.boolean isAffine()
true if this transformer implements a linear affine
transform.VectorTransformer3d copy()
java.lang.String toString(java.lang.String fmtStr)
fmtStr - format string describing how floating point
numbers should be formatted