Class TransformSequence
TransformSequence stores an ordered list of basic transformations.
This can be useful if you need to construct some modifications and want
to use the same set later. For example, if you have a hierarchy of objects
with relative transformations and want to "save" the nested transform sequence
without having to hold references to the original objects.
Use the Append() functions to add different transform types, and the TransformX()
to apply the sequence
Inheritance
TransformSequence
Namespace: g3
Assembly: cs.temp.dll.dll
public class TransformSequence
Constructors
Declaration
public TransformSequence()
Declaration
public TransformSequence(TransformSequence copy)
Parameters
Methods
Declaration
public void Append(TransformSequence sequence)
Parameters
Declaration
public void AppendFromFrame(Frame3f frame)
Parameters
Type |
Name |
Description |
Frame3f |
frame |
|
Declaration
public void AppendRotation(Quaternionf q)
Parameters
Declaration
public void AppendRotation(Quaternionf q, Vector3d aroundPt)
Parameters
Declaration
public void AppendScale(Vector3d s)
Parameters
Declaration
public void AppendScale(Vector3d s, Vector3d aroundPt)
Parameters
Declaration
public void AppendToFrame(Frame3f frame)
Parameters
Type |
Name |
Description |
Frame3f |
frame |
|
Declaration
public void AppendTranslation(Vector3d dv)
Parameters
Declaration
public void AppendTranslation(double dx, double dy, double dz)
Parameters
construct inverse transformation sequence
Declaration
public TransformSequence MakeInverse()
Returns
Declaration
public void Restore(BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Declaration
public void Store(BinaryWriter writer)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
Apply transforms to point
Declaration
public Vector3d TransformP(Vector3d p)
Parameters
Returns
Apply transforms to point
Declaration
public Vector3f TransformP(Vector3f p)
Parameters
Returns
Apply transforms to vector. Includes scaling.
Declaration
public Vector3d TransformV(Vector3d v)
Parameters
Returns