 |
TransformationUtils Class |
TransformationUtils is a static helper class that defines method that helps working with transformations.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic static class TransformationUtils
The TransformationUtils type exposes the following members.
Methods| | Name | Description |
|---|
  | AddTransformation |
Adds the transformToAdd to the specified SceneNode.
If SceneNode have no Transform set, set the transformToAdd to it.
If SceneNode already have Transform set, the transformToAdd is added to existing or new TransformGroup.
|
  | CombineTransformations |
Combines the specified transformations and returns an updated transform or creates a new one.
If one transformation is null or Identity, then the other transformation is returned.
If both transformations are null, then null is returned.
Otherwise, tries to return StandardTransform, StandardQuaternionTransform, TranslateTransform, or ScaleTransform if possible, otherwise returns TransformGroup with both transformations.
|
  | GetCombinedTransformation |
Returns a transformation that is created by combining (multiplying) the specified transformations (MatrixTransform is returned).
If one matrix is null or Identity, then the other transformation is returned.
If both transformations are null, then null is returned.
|
  | GetTotalMeshTransform |
Returns a transformation which is created by combining (multiplying) the specified mesh transform, modelNode transform and parent transform.
If no transformation is used, null is returned.
|
Top
See Also