Class ObjectControlAPI
Last update: 16.07.2025Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for object control.
public static class ObjectControlAPI
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
RotateObjectsDegree(IEnumerable<Obj>, Vector, Vector, double)
Rotate given
[NotNull(new string[] { "objs" })]
[NotZeroMagnitude(new string[] { "direction" })]
public static void RotateObjectsDegree(IEnumerable<Obj> objs, Vector position, Vector direction, double rotateAngleDegree)
Parameters
objs IEnumerable<Obj>
The collection of
position Vector
The position of the axis.
direction Vector
The direction vetor of the rotation axis.
rotateAngleDegree double
The rotation angle.
Exceptions
Will be thrown when the collection of objects is null.
Will be thrown if the magnitude of 'direction' is 0.
TransformObjects(IEnumerable<Obj>, TMatrix)
Transform given
[NotNull(new string[] { "objs" })]
public static void TransformObjects(IEnumerable<Obj> objs, TMatrix transform)
Parameters
objs IEnumerable<Obj>
The collection of
transform TMatrix
The
Exceptions
Will be thrown when the collection of objects is null.