> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ObjectControlAPI

Namespace: [VM.API.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre)\
Assembly: VM.API.Pre.dll

This class implements APIs for object control.

```csharp theme={null}
public static class ObjectControlAPI
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ObjectControlAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.ObjectControlAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### RotateObjectsDegree(IEnumerable\<Obj>, Vector, Vector, double)

Rotate given Obj?text=objects by using rotation axis and angle(degree).

```csharp theme={null}
[NotNull(new string[] { "objs" })]
[NotZeroMagnitude(new string[] { "direction" })]
public static void RotateObjectsDegree(IEnumerable<Obj> objs, Vector position, Vector direction, double rotateAngleDegree)
```

#### Parameters

`objs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)>

The collection of Obj?text=objects to rotate.

`position` Vector

The position of the axis.

`direction` Vector

The direction vetor of the rotation axis.

`rotateAngleDegree` [double](https://learn.microsoft.com/dotnet/api/system.double)

The rotation angle.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown when the collection of objects is null.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the magnitude of 'direction' is 0.

### TransformObjects(IEnumerable\<Obj>, TMatrix)

Transform given Obj?text=objects by using TMatrix?text=transformation+matrix.

```csharp theme={null}
[NotNull(new string[] { "objs" })]
public static void TransformObjects(IEnumerable<Obj> objs, TMatrix transform)
```

#### Parameters

`objs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)>

The collection of Obj?text=objects to transform.

`transform` TMatrix

The TMatrix?text=transformation+matrix

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown when the collection of objects is null.
