HE_Mesh2014  2.0.11
Public Member Functions | Private Attributes | List of all members
wblut.geom.WB_Transform Class Reference

Public Member Functions

 WB_Transform ()
 
 WB_Transform (final WB_Transform Trans)
 
 WB_Transform (final WB_Coord sourceOrigin, final WB_Coord sourceDirection, final WB_Coord targetOrigin, final WB_Coord targetDirection)
 
 WB_Transform (final WB_Coord sourceDirection, final WB_Coord targetDirection)
 
WB_Transform get ()
 
WB_Transform addTranslate (final WB_Coord v)
 
WB_Transform addTranslate (final double f, final WB_Coord v)
 
WB_Transform addScale (final WB_Coord s)
 
WB_Transform addScale (final double sx, final double sy, final double sz)
 
WB_Transform addScale (final double s)
 
WB_Transform addRotateX (final double angle)
 
WB_Transform addRotateY (final double angle)
 
WB_Transform addRotateZ (final double angle)
 
WB_Transform addRotate (final double angle, final WB_Coord axis)
 
WB_Transform addRotateAboutOrigin (final double angle, final WB_Coord axis)
 
WB_Transform addRotateAboutAxis (final double angle, final WB_Coord p, final WB_Coord axis)
 
WB_Transform addRotateAbout2PAxis (final double angle, final WB_Coord p, final WB_Coord q)
 
WB_Transform addRotateAboutAxis2P (final double angle, final WB_Coord p, final WB_Coord q)
 
WB_Transform addObjectToWorld (final WB_Coord origin, final WB_Coord up, final WB_Coord front)
 
WB_Transform addReflectX ()
 
WB_Transform addReflectY ()
 
WB_Transform addReflectZ ()
 
WB_Transform addInvert ()
 
WB_Transform addReflectX (final WB_Coord p)
 
WB_Transform addReflectY (final WB_Coord p)
 
WB_Transform addReflectZ (final WB_Coord p)
 
WB_Transform addInvert (final WB_Coord p)
 
WB_Transform addReflect (final WB_Plane P)
 
WB_Transform addShear (final WB_Plane P, final WB_Coord v, final double angle)
 
WB_Transform addFromCSToCS (final WB_CoordinateSystem CS1, final WB_CoordinateSystem CS2)
 
WB_Transform addFromCSToWorld (final WB_CoordinateSystem CS)
 
WB_Transform addFromWorldToCS (final WB_CoordinateSystem CS)
 
WB_Transform addFromCSToParent (final WB_CoordinateSystem CS)
 
WB_Transform addFromParentToCS (final WB_CoordinateSystem CS)
 
void inverse ()
 
void clear ()
 
WB_Point applyAsPoint (final WB_Coord p)
 
WB_Point applyAsPoint (final double x, final double y, final double z)
 
void applySelfAsPoint (final WB_MutableCoord p)
 
WB_Vector applyAsVector (final WB_Coord p)
 
WB_Vector applyAsVector (final double x, final double y, final double z)
 
void applySelfAsVector (final WB_MutableCoord p)
 
WB_Vector applyAsNormal (final WB_Coord p)
 
WB_Vector applyAsNormal (final double x, final double y, final double z)
 
void applySelfAsNormal (final WB_MutableCoord n)
 
void applyAsPoint (final WB_Coord p, final WB_MutableCoord result)
 
void applyAsPoint (final double x, final double y, final double z, final WB_MutableCoord result)
 
void applyAsVector (final WB_Coord p, final WB_MutableCoord result)
 
void applyAsVector (final double x, final double y, final double z, final WB_MutableCoord result)
 
void applyAsNormal (final WB_Coord n, final WB_MutableCoord result)
 
void applyAsNormal (final double x, final double y, final double z, final WB_MutableCoord result)
 
void applyInvAsPoint (final WB_Coord p, final WB_MutableCoord result)
 
void applyInvAsPoint (final double x, final double y, final double z, final WB_MutableCoord result)
 
void applyInvAsVector (final WB_Coord p, final WB_MutableCoord result)
 
void applyInvAsVector (final double x, final double y, final double z, final WB_MutableCoord result)
 
void applyInvAsNormal (final WB_Coord n, final WB_MutableCoord result)
 
void applyInvAsNormal (final double x, final double y, final double z, final WB_MutableCoord result)
 
String toString ()
 
WB_Vector getEulerAnglesXYZ ()
 

Private Attributes

double _xt
 
WB_M44 T
 
WB_M44 invT
 

Constructor & Destructor Documentation

wblut.geom.WB_Transform.WB_Transform ( )

Instantiates a new WB_Transfrom.

wblut.geom.WB_Transform.WB_Transform ( final WB_Transform  Trans)
Parameters
Trans
wblut.geom.WB_Transform.WB_Transform ( final WB_Coord  sourceOrigin,
final WB_Coord  sourceDirection,
final WB_Coord  targetOrigin,
final WB_Coord  targetDirection 
)
Parameters
sourceOrigin
sourceDirection
targetOrigin
targetDirection
wblut.geom.WB_Transform.WB_Transform ( final WB_Coord  sourceDirection,
final WB_Coord  targetDirection 
)
Parameters
sourceDirection
targetDirection

Member Function Documentation

WB_Transform wblut.geom.WB_Transform.addFromCSToCS ( final WB_CoordinateSystem  CS1,
final WB_CoordinateSystem  CS2 
)
Parameters
CS1
CS2
Returns
WB_Transform wblut.geom.WB_Transform.addFromCSToParent ( final WB_CoordinateSystem  CS)
Parameters
CS
Returns
WB_Transform wblut.geom.WB_Transform.addFromCSToWorld ( final WB_CoordinateSystem  CS)
Parameters
CS
Returns
WB_Transform wblut.geom.WB_Transform.addFromParentToCS ( final WB_CoordinateSystem  CS)
Parameters
CS
Returns
WB_Transform wblut.geom.WB_Transform.addFromWorldToCS ( final WB_CoordinateSystem  CS)
Parameters
CS
Returns
WB_Transform wblut.geom.WB_Transform.addInvert ( )

Adds the invert.

Returns
WB_Transform wblut.geom.WB_Transform.addInvert ( final WB_Coord  p)

Adds the invert.

Parameters
pthe p
Returns
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.

Parameters
originobject origin in world coordinates
upobject up direction in world coordinates
frontobject front direction in world coordinates
Returns
self
WB_Transform wblut.geom.WB_Transform.addReflect ( final WB_Plane  P)

Adds the reflect.

Parameters
Pthe p
Returns
WB_Transform wblut.geom.WB_Transform.addReflectX ( )

Adds the reflect x.

Returns
WB_Transform wblut.geom.WB_Transform.addReflectX ( final WB_Coord  p)

Adds the reflect x.

Parameters
pthe p
Returns
WB_Transform wblut.geom.WB_Transform.addReflectY ( )

Adds the reflect y.

Returns
WB_Transform wblut.geom.WB_Transform.addReflectY ( final WB_Coord  p)

Adds the reflect y.

Parameters
pthe p
Returns
WB_Transform wblut.geom.WB_Transform.addReflectZ ( )

Adds the reflect z.

Returns
WB_Transform wblut.geom.WB_Transform.addReflectZ ( final WB_Coord  p)

Adds the reflect z.

Parameters
pthe p
Returns
WB_Transform wblut.geom.WB_Transform.addRotate ( final double  angle,
final WB_Coord  axis 
)

Add rotation about arbitrary axis in origin.

Parameters
angleangle in radians
axisWB_Vector
Returns
self
Deprecated:
Use addRotateAboutOrigin(double,WB_Coord) instead
WB_Transform wblut.geom.WB_Transform.addRotateAbout2PAxis ( final double  angle,
final WB_Coord  p,
final WB_Coord  q 
)

Add rotation about arbitrary axis defiend by two points .

Parameters
angleangle in radians
pfirst point
qsecond point
Returns
self
Deprecated:
Use addRotateAboutAxis2P(double,WB_Coord,WB_Coord) instead
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.

Parameters
angleangle in radians
ppoint
axisdirection
Returns
self
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 .

Parameters
angleangle in radians
pfirst point
qsecond point
Returns
self
WB_Transform wblut.geom.WB_Transform.addRotateAboutOrigin ( final double  angle,
final WB_Coord  axis 
)

Add rotation about arbitrary axis in origin.

Parameters
angleangle in radians
axisWB_Vector
Returns
self
WB_Transform wblut.geom.WB_Transform.addRotateX ( final double  angle)

Add rotation about X-axis.

Parameters
angleangle in radians
Returns
self
WB_Transform wblut.geom.WB_Transform.addRotateY ( final double  angle)

Add rotation about Y-axis.

Parameters
angleangle in radians
Returns
self
WB_Transform wblut.geom.WB_Transform.addRotateZ ( final double  angle)

Add rotation about Z-axis.

Parameters
angleangle in radians
Returns
self
WB_Transform wblut.geom.WB_Transform.addScale ( final WB_Coord  s)

Add non-uniform scale to transform.

Parameters
sscaling vector
Returns
self
WB_Transform wblut.geom.WB_Transform.addScale ( final double  sx,
final double  sy,
final double  sz 
)

Add non-uniform scale to transform.

Parameters
sxscaling vector
syscaling vector
szscaling vector
Returns
self
WB_Transform wblut.geom.WB_Transform.addScale ( final double  s)

Add uniform scale to transform.

Parameters
sscaling point
Returns
self
WB_Transform wblut.geom.WB_Transform.addShear ( final WB_Plane  P,
final WB_Coord  v,
final double  angle 
)

Adds the shear.

Parameters
Pthe p
vthe v
anglethe angle
Returns
WB_Transform wblut.geom.WB_Transform.addTranslate ( final WB_Coord  v)

Add translation to transform.

Parameters
vvector
Returns
self
WB_Transform wblut.geom.WB_Transform.addTranslate ( final double  f,
final WB_Coord  v 
)
Parameters
f
v
Returns
WB_Vector wblut.geom.WB_Transform.applyAsNormal ( final WB_Coord  p)

Apply as normal.

Parameters
p
Returns
WB_Vector wblut.geom.WB_Transform.applyAsNormal ( final double  x,
final double  y,
final double  z 
)

Apply as normal.

Parameters
x
y
z
Returns
void wblut.geom.WB_Transform.applyAsNormal ( final WB_Coord  n,
final WB_MutableCoord  result 
)
Parameters
n
result
void wblut.geom.WB_Transform.applyAsNormal ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
WB_Point wblut.geom.WB_Transform.applyAsPoint ( final WB_Coord  p)

Apply transform to point.

Parameters
ppoint
Returns
new WB_XYZ
WB_Point wblut.geom.WB_Transform.applyAsPoint ( final double  x,
final double  y,
final double  z 
)

Apply as point.

Parameters
x
y
z
Returns
void wblut.geom.WB_Transform.applyAsPoint ( final WB_Coord  p,
final WB_MutableCoord  result 
)
Parameters
p
result
void wblut.geom.WB_Transform.applyAsPoint ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
WB_Vector wblut.geom.WB_Transform.applyAsVector ( final WB_Coord  p)

Apply transform to vector.

Parameters
pvector
Returns
new WB_Vector
WB_Vector wblut.geom.WB_Transform.applyAsVector ( final double  x,
final double  y,
final double  z 
)

Apply as vector.

Parameters
x
y
z
Returns
void wblut.geom.WB_Transform.applyAsVector ( final WB_Coord  p,
final WB_MutableCoord  result 
)
Parameters
p
result
void wblut.geom.WB_Transform.applyAsVector ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
void wblut.geom.WB_Transform.applyInvAsNormal ( final WB_Coord  n,
final WB_MutableCoord  result 
)
Parameters
n
result
void wblut.geom.WB_Transform.applyInvAsNormal ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
void wblut.geom.WB_Transform.applyInvAsPoint ( final WB_Coord  p,
final WB_MutableCoord  result 
)
Parameters
p
result
void wblut.geom.WB_Transform.applyInvAsPoint ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
void wblut.geom.WB_Transform.applyInvAsVector ( final WB_Coord  p,
final WB_MutableCoord  result 
)
Parameters
p
result
void wblut.geom.WB_Transform.applyInvAsVector ( final double  x,
final double  y,
final double  z,
final WB_MutableCoord  result 
)
Parameters
x
y
z
result
void wblut.geom.WB_Transform.applySelfAsNormal ( final WB_MutableCoord  n)

Apply transform to normal.

Parameters
nnormal
void wblut.geom.WB_Transform.applySelfAsPoint ( final WB_MutableCoord  p)

Apply transform to point.

Parameters
ppoint
void wblut.geom.WB_Transform.applySelfAsVector ( final WB_MutableCoord  p)

Apply transform to vector.

Parameters
pvector
void wblut.geom.WB_Transform.clear ( )

Clear transform.

WB_Transform wblut.geom.WB_Transform.get ( )
Returns
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!

Returns
void wblut.geom.WB_Transform.inverse ( )

Invert transform.

String wblut.geom.WB_Transform.toString ( )

Member Data Documentation

double wblut.geom.WB_Transform._xt
private
WB_M44 wblut.geom.WB_Transform.invT
private

Inverse transform matrix.

WB_M44 wblut.geom.WB_Transform.T
private

Transform matrix.


The documentation for this class was generated from the following file: