Class TransformSequence2
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
TransformSequence2
Namespace: g3
Assembly: cs.temp.dll.dll
public class TransformSequence2 : ITransform2
Constructors
Declaration
public TransformSequence2()
Methods
Declaration
public TransformSequence2 Append(ITransform2 t2)
Parameters
Returns
Declaration
public TransformSequence2 RotationDeg(double angle)
Parameters
Type |
Name |
Description |
Double |
angle |
|
Returns
Declaration
public TransformSequence2 RotationDeg(double angle, Vector2d aroundPt)
Parameters
Returns
Declaration
public TransformSequence2 RotationRad(double angle)
Parameters
Type |
Name |
Description |
Double |
angle |
|
Returns
Declaration
public TransformSequence2 RotationRad(double angle, Vector2d aroundPt)
Parameters
Returns
Declaration
public TransformSequence2 Scale(Vector2d s)
Parameters
Returns
Declaration
public TransformSequence2 Scale(Vector2d s, Vector2d aroundPt)
Parameters
Returns
Apply transforms to normalized vector
Declaration
public Vector2d TransformN(Vector2d n)
Parameters
Returns
Apply transforms to point
Declaration
public Vector2d TransformP(Vector2d p)
Parameters
Returns
Apply transforms to scalar dimension
Declaration
public double TransformScalar(double s)
Parameters
Type |
Name |
Description |
Double |
s |
|
Returns
Declaration
public TransformSequence2 Translation(Vector2d dv)
Parameters
Returns
Declaration
public TransformSequence2 Translation(double dx, double dy)
Parameters
Returns
Implements