Package empro :: Module empro :: Module geometry :: Class CoordinateSystem
[frames] | no frames]

Class CoordinateSystem

core.Updatable --+
                 |
                CoordinateSystem

Provides a coordinate system to facilitate the transformation of geometric data.

Class Hierarchy for CoordinateSystem
Class Hierarchy for CoordinateSystem

constructor CoordinateSystem(): Creates a default coordinate system with anchor = (0,0,0), primary direction = (1,0,0) and secondary direction = (0,1,0). constructor CoordinateSystem(iOrigin): Creates a coordinate system with given anchor point and default primary and secondary directions.

constructor CoordinateSystem(iOrigin, iPrimaryDirection, iSecondaryDirection):

Instance Methods
Vector3d
origin()
Get the value of the origin.
CoordinateSystem
referenceCoordinateSystem()
Returns the reference coordinate system.
None
rotate(iAngleAboutU, iAngleAboutV, iAngleAboutW)
Rotates the coordinate system by the provided angles
BoundingBox3D
transform(iBoundingBox, iTransformationType)
Transforms a BoundingBox3D from one coordinate system to another.
Vector3d
transformDirection(iDirection, iTransformationType)
Transforms a direction from one coordinate system to another.
Vector3d
transformPosition(iPosition, iTransformationType)
Transforms a position from one coordinate system to another.
None
translate(iTranslation)
Translates the coordinate system by the provided vector
Vector3d
u()
Get the value of the u direction.
Vector3d
v()
Get the value of the v direction.
Vector3d
w()
Get the value of the w direction.

Inherited from core.Updatable: __enter__, __exit__, clone, hash, isValid, reasonWhyInvalid

Properties
CoordinateSystemAbstractPositionNone anchorPoint
Anchor point of the coordinate system.
CoordinateSystemAbstractDirectionNone primaryDirection
Primary direction of the coordinate system.
  rotation
No documentation available.
CoordinateSystemAbstractDirectionNone secondaryDirection
Secondary direction of the coordinate system.
Vector3dNone translation
Translation of the coordinate system with respect to the absolute origin.
Method Details

rotate(iAngleAboutU, iAngleAboutV, iAngleAboutW)

 

Rotates the coordinate system by the provided angles

Parameters:
  • iAngleAboutU (float) - The angle in radians to rotate around u. (happens third)
  • iAngleAboutV (float) - The angle in radians to rotate around v. (happens second)
  • iAngleAboutW (float) - The angle in radians to rotate around w. (happens first)
Returns: None

transform(iBoundingBox, iTransformationType)

 

Transforms a BoundingBox3D from one coordinate system to another.

Parameters:
  • iBoundingBox (BoundingBox3D) - The bounding box to transform.
  • iTransformationType (string) - The type of the transformation {GlobalToLocal,LocalToGlobal,LocalToReference,ReferenceToLocal}
Returns: BoundingBox3D

transformDirection(iDirection, iTransformationType)

 

Transforms a direction from one coordinate system to another.

Parameters:
  • iDirection (Vector3d) - The direction to transform.
  • iTransformationType (string) - The type of the transformation {GlobalToLocal,LocalToGlobal,LocalToReference,ReferenceToLocal}
Returns: Vector3d

transformPosition(iPosition, iTransformationType)

 

Transforms a position from one coordinate system to another.

Parameters:
  • iPosition (Vector3d) - The position to transform.
  • iTransformationType (string) - The type of the transformation {GlobalToLocal,LocalToGlobal,LocalToReference,ReferenceToLocal}
Returns: Vector3d

translate(iTranslation)

 

Translates the coordinate system by the provided vector

Parameters:
  • iTranslation (Vector3d) - The translation vector.
Returns: None