HE_Mesh
6.0.1
|
Private Attributes | |
double | _xt |
WB_GeometryFactory | geometryfactory = new WB_GeometryFactory() |
WB_M44 | T |
WB_M44 | invT |
wblut.geom.WB_Transform.WB_Transform | ( | ) |
Instantiates a new WB_Transfrom.
wblut.geom.WB_Transform.WB_Transform | ( | final WB_Transform | Trans | ) |
Trans |
References wblut.math.WB_M44.get(), wblut.geom.WB_Transform.invT, and wblut.geom.WB_Transform.T.
wblut.geom.WB_Transform.WB_Transform | ( | final WB_Coord | sourceOrigin, |
final WB_Coord | sourceDirection, | ||
final WB_Coord | targetOrigin, | ||
final WB_Coord | targetDirection | ||
) |
sourceOrigin | |
sourceDirection | |
targetOrigin | |
targetDirection |
References wblut.geom.WB_Transform.addRotateAboutOrigin(), wblut.geom.WB_Transform.addTranslate(), wblut.geom.WB_GeometryFactory3D.createNormalizedPerpendicularVector(), wblut.geom.WB_GeometryFactory3D.createNormalizedVector(), wblut.geom.WB_Vector.cross(), wblut.geom.WB_Vector.dot(), wblut.geom.WB_Vector.getLength(), wblut.math.WB_Epsilon.isZero(), and wblut.geom.WB_Vector.normalizeSelf().
wblut.geom.WB_Transform.WB_Transform | ( | final WB_Coord | sourceDirection, |
final WB_Coord | targetDirection | ||
) |
sourceDirection | |
targetDirection |
References wblut.geom.WB_Transform.addRotateAboutOrigin(), wblut.geom.WB_GeometryFactory3D.createNormalizedPerpendicularVector(), wblut.geom.WB_GeometryFactory3D.createNormalizedVector(), wblut.geom.WB_Vector.cross(), wblut.geom.WB_Vector.dot(), wblut.geom.WB_Vector.getLength(), wblut.math.WB_Epsilon.isZero(), and wblut.geom.WB_Vector.normalizeSelf().
WB_Transform wblut.geom.WB_Transform.addFromCSToCS | ( | final WB_CoordinateSystem3D | CS1, |
final WB_CoordinateSystem3D | CS2 | ||
) |
CS1 | |
CS2 |
References wblut.geom.WB_Transform.addFromCSToWorld(), and wblut.geom.WB_Transform.addFromWorldToCS().
WB_Transform wblut.geom.WB_Transform.addFromCSToParent | ( | final WB_CoordinateSystem3D | CS | ) |
CS |
References wblut.geom.WB_Transform.addTranslate(), wblut.geom.WB_Vector.dot(), wblut.geom.WB_CoordinateSystem3D.getOrigin(), wblut.geom.WB_CoordinateSystem3D.getX(), wblut.geom.WB_CoordinateSystem3D.getY(), wblut.geom.WB_CoordinateSystem3D.getZ(), wblut.geom.WB_CoordinateSystem3D.isWorld(), wblut.math.WB_M44.mult(), wblut.geom.WB_Point.subSelf(), and wblut.geom.WB_CoordinateSystem3D.WORLD().
WB_Transform wblut.geom.WB_Transform.addFromCSToWorld | ( | final WB_CoordinateSystem3D | CS | ) |
CS |
References wblut.geom.WB_Transform.addFromCSToParent(), wblut.geom.WB_CoordinateSystem3D.getParent(), and wblut.geom.WB_CoordinateSystem3D.isWorld().
WB_Transform wblut.geom.WB_Transform.addFromParentToCS | ( | final WB_CoordinateSystem3D | CS | ) |
WB_Transform wblut.geom.WB_Transform.addFromWorldToCS | ( | final WB_CoordinateSystem3D | CS | ) |
CS |
References wblut.geom.WB_Transform.addFromCSToWorld(), wblut.geom.WB_Transform.invT, wblut.math.WB_M44.mult(), wblut.geom.WB_Transform.T, and wblut.geom.WB_Transform.WB_Transform().
WB_Transform wblut.geom.WB_Transform.addInvert | ( | ) |
WB_Transform wblut.geom.WB_Transform.addInvert | ( | final WB_Coord | p | ) |
Adds the invert.
p | the p |
References wblut.geom.WB_Transform.addScale(), and wblut.geom.WB_Transform.addTranslate().
WB_Transform wblut.geom.WB_Transform.addObjectToWorld | ( | final WB_Coord | origin, |
final WB_Coord | up, | ||
final WB_Coord | front | ||
) |
Add a object-to-world transform.
origin | object origin in world coordinates |
up | object up direction in world coordinates |
front | object front direction in world coordinates |
References wblut.geom.WB_Vector.cross(), wblut.math.WB_M44.inverse(), wblut.math.WB_M44.mult(), wblut.geom.WB_Vector.normalizeSelf(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_Coord.yd(), wblut.geom.WB_MutableCoordinate.yd(), wblut.geom.WB_Coord.zd(), and wblut.geom.WB_MutableCoordinate.zd().
WB_Transform wblut.geom.WB_Transform.addReflect | ( | final WB_Plane | P | ) |
Adds the reflect.
P | the p |
References wblut.geom.WB_Vector.dot(), wblut.geom.WB_Plane.getNormal(), wblut.geom.WB_Plane.getOrigin(), wblut.math.WB_M33.m11, wblut.math.WB_M33.m21, wblut.math.WB_M33.m31, wblut.math.WB_M44.mult(), wblut.geom.WB_Vector.tensor(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
WB_Transform wblut.geom.WB_Transform.addReflectX | ( | ) |
WB_Transform wblut.geom.WB_Transform.addReflectX | ( | final WB_Coord | p | ) |
Adds the reflect x.
p | the p |
References wblut.geom.WB_Transform.addScale(), and wblut.geom.WB_Transform.addTranslate().
WB_Transform wblut.geom.WB_Transform.addReflectY | ( | ) |
WB_Transform wblut.geom.WB_Transform.addReflectY | ( | final WB_Coord | p | ) |
Adds the reflect y.
p | the p |
References wblut.geom.WB_Transform.addScale(), and wblut.geom.WB_Transform.addTranslate().
WB_Transform wblut.geom.WB_Transform.addReflectZ | ( | ) |
WB_Transform wblut.geom.WB_Transform.addReflectZ | ( | final WB_Coord | p | ) |
Adds the reflect z.
p | the p |
References wblut.geom.WB_Transform.addScale(), and wblut.geom.WB_Transform.addTranslate().
WB_Transform wblut.geom.WB_Transform.addRotateAboutAxis | ( | final double | angle, |
final WB_Coord | p, | ||
final WB_Coord | axis | ||
) |
Add rotation about arbitrary axis defined by point and direction.
angle | angle in radians |
p | point |
axis | direction |
References wblut.geom.WB_Transform.addRotateAboutOrigin(), and wblut.geom.WB_Transform.addTranslate().
WB_Transform wblut.geom.WB_Transform.addRotateAboutAxis2P | ( | final double | angle, |
final WB_Coord | p, | ||
final WB_Coord | q | ||
) |
Add rotation about arbitrary axis defiend by two points .
angle | angle in radians |
p | first point |
q | second point |
References wblut.geom.WB_Transform.addRotateAboutOrigin(), wblut.geom.WB_Transform.addTranslate(), and wblut.geom.WB_Vector.sub().
WB_Transform wblut.geom.WB_Transform.addRotateAboutOrigin | ( | final double | angle, |
final WB_Coord | axis | ||
) |
Add rotation about arbitrary axis in origin.
angle | angle in radians |
axis | WB_Vector |
References wblut.math.WB_M44.getTranspose(), wblut.math.WB_M44.mult(), wblut.geom.WB_Vector.normalizeSelf(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
WB_Transform wblut.geom.WB_Transform.addRotateX | ( | final double | angle | ) |
Add rotation about X-axis.
angle | angle in radians |
References wblut.math.WB_M44.getTranspose(), and wblut.math.WB_M44.mult().
WB_Transform wblut.geom.WB_Transform.addRotateY | ( | final double | angle | ) |
Add rotation about Y-axis.
angle | angle in radians |
References wblut.math.WB_M44.getTranspose(), and wblut.math.WB_M44.mult().
WB_Transform wblut.geom.WB_Transform.addRotateZ | ( | final double | angle | ) |
Add rotation about Z-axis.
angle | angle in radians |
References wblut.math.WB_M44.getTranspose(), and wblut.math.WB_M44.mult().
WB_Transform wblut.geom.WB_Transform.addScale | ( | final WB_Coord | s | ) |
Add non-uniform scale to transform.
s | scaling vector |
References wblut.math.WB_M44.mult(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Transform wblut.geom.WB_Transform.addScale | ( | final double | sx, |
final double | sy, | ||
final double | sz | ||
) |
Add non-uniform scale to transform.
sx | scaling vector |
sy | scaling vector |
sz | scaling vector |
References wblut.math.WB_M44.mult().
WB_Transform wblut.geom.WB_Transform.addScale | ( | final double | s | ) |
Add uniform scale to transform.
s | scaling point |
References wblut.math.WB_M44.mult().
WB_Transform wblut.geom.WB_Transform.addShear | ( | final WB_Plane | P, |
final WB_Coord | v, | ||
final double | angle | ||
) |
Adds the shear.
P | the p |
v | the v |
angle | the angle |
References wblut.geom.WB_Vector.dot(), wblut.geom.WB_Plane.getNormal(), wblut.geom.WB_Plane.getOrigin(), wblut.math.WB_M33.m11, wblut.math.WB_M33.m21, wblut.math.WB_M33.m31, wblut.math.WB_M44.mult(), wblut.geom.WB_Vector.normalizeSelf(), wblut.geom.WB_Vector.tensor(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
WB_Transform wblut.geom.WB_Transform.addTranslate | ( | final WB_Coord | v | ) |
Add translation to transform.
v | vector |
References wblut.math.WB_M44.mult(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Transform wblut.geom.WB_Transform.addTranslate | ( | final double | f, |
final WB_Coord | v | ||
) |
f | |
v |
References wblut.math.WB_M44.mult(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
Apply as normal.
p |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Vector wblut.geom.WB_Transform.applyAsNormal | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
Apply as normal.
x | |
y | |
z |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, and wblut.math.WB_M44.m31.
void wblut.geom.WB_Transform.applyAsNormalInto | ( | final WB_Coord | n, |
final WB_MutableCoord | result | ||
) |
n | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyAsNormalInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyAsNormalSelf | ( | final WB_MutableCoord | n | ) |
Apply transform to normal.
n | normal |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
Apply transform to point.
p | point |
References wblut.math.WB_Epsilon.isZero(), wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Point wblut.geom.WB_Transform.applyAsPoint | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
Apply as point.
x | |
y | |
z |
References wblut.math.WB_Epsilon.isZero(), wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.math.WB_M44.m41.
void wblut.geom.WB_Transform.applyAsPointInto | ( | final WB_Coord | p, |
final WB_MutableCoord | result | ||
) |
p | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyAsPointInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyAsPointSelf | ( | final WB_MutableCoord | p | ) |
Apply transform to point.
p | point |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
Apply transform to vector.
p | vector |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Vector wblut.geom.WB_Transform.applyAsVector | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
Apply as vector.
x | |
y | |
z |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, and wblut.math.WB_M44.m31.
void wblut.geom.WB_Transform.applyAsVectorInto | ( | final WB_Coord | p, |
final WB_MutableCoord | result | ||
) |
p | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyAsVectorInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyAsVectorSelf | ( | final WB_MutableCoord | p | ) |
Apply transform to vector.
p | vector |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
n |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Vector wblut.geom.WB_Transform.applyInvAsNormal | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
x | |
y | |
z |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, and wblut.math.WB_M44.m31.
void wblut.geom.WB_Transform.applyInvAsNormalInto | ( | final WB_Coord | n, |
final WB_MutableCoord | result | ||
) |
n | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyInvAsNormalInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyInvAsNormalSelf | ( | final WB_MutableCoord | n | ) |
p |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Point wblut.geom.WB_Transform.applyInvAsPoint | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
x | |
y | |
z |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.math.WB_M44.m41.
void wblut.geom.WB_Transform.applyInvAsPointInto | ( | final WB_Coord | p, |
final WB_MutableCoord | result | ||
) |
p | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyInvAsPointInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.math.WB_M44.m41, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyInvAsPointSelf | ( | final WB_MutableCoord | p | ) |
p |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
WB_Vector wblut.geom.WB_Transform.applyInvAsVector | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
x | |
y | |
z |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, and wblut.math.WB_M44.m31.
void wblut.geom.WB_Transform.applyInvAsVectorInto | ( | final WB_Coord | p, |
final WB_MutableCoord | result | ||
) |
p | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, wblut.geom.WB_MutableCoord.set(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_Coord.yd(), and wblut.geom.WB_Coord.zd().
void wblut.geom.WB_Transform.applyInvAsVectorInto | ( | final double | x, |
final double | y, | ||
final double | z, | ||
final WB_MutableCoord | result | ||
) |
x | |
y | |
z | |
result |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.geom.WB_MutableCoord.set().
void wblut.geom.WB_Transform.applyInvAsVectorSelf | ( | final WB_MutableCoord | v | ) |
void wblut.geom.WB_Transform.clear | ( | ) |
Clear transform.
WB_Transform wblut.geom.WB_Transform.get | ( | ) |
References wblut.geom.WB_Transform.WB_Transform().
WB_Vector wblut.geom.WB_Transform.getEulerAnglesXYZ | ( | ) |
Get the Euler angles corresponding to the rotational part of the transformation. Only works if the transformation is rotation and translation, nothing else!
References wblut.geom.WB_GeometryFactory3D.createVector(), wblut.math.WB_Epsilon.isEqualAbs(), wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, and wblut.math.WB_M44.m31.
void wblut.geom.WB_Transform.inverse | ( | ) |
Invert transform.
References wblut.geom.WB_Transform.invT, and wblut.geom.WB_Transform.T.
String wblut.geom.WB_Transform.toString | ( | ) |
References wblut.math.WB_M44.m11, wblut.math.WB_M44.m21, wblut.math.WB_M44.m31, and wblut.math.WB_M44.m41.
|
private |
|
private |
|
private |
Inverse transform matrix.
|
private |
Transform matrix.