Class TransformerUtil
Utility for ITransformer.
public static class TransformerUtil
- Inheritance
-
TransformerUtil
- Inherited Members
Methods
GetSteps(IDynamicRegular[])
Gets the steps.
public static double[] GetSteps(IDynamicRegular[] dynamics)
Parameters
dynamicsIDynamicRegular[]The dynamics.
Returns
- double[]
the steps
Reg(XFactory)
Registers every concrete ITransformer implementation with
the given XFactory: NoTransform,
StaticTranslation, StaticRotation,
StaticFreeform, DynamicTranslation,
DynamicRotation, DynamicFreeform,
StackTransformer, and GeneralTransform.
Composites that deserialize a Branch (whose
Transformer child can be any of the above) should chain this
from their own Reg(factory). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory
SetSteps(IDynamicRegular[], double[])
Sets the steps.
public static void SetSteps(IDynamicRegular[] dynamics, double[] steps)
Parameters
dynamicsIDynamicRegular[]The dynamics.
stepsdouble[]The steps.