> ## 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 RelativeFunction

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 represents the relative function

```csharp theme={null}
public class RelativeFunction : Relative
```

#### Inheritance

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

#### Inherited Members

[Relative.Type](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Relative.md#VM_API_Pre_Relative_Type)

#### 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_)

## Constructors

### RelativeFunction(Obj)

Default constructor

```csharp theme={null}
public RelativeFunction(Obj function)
```

#### Parameters

`function` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)

The function of the relative.

### RelativeFunction(Obj, MotionType, ExpressionValueVariable, ExpressionValueVariable)

Initializes a new instance of the [RelativeFunction](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.RelativeFunction.md) class.

```csharp theme={null}
public RelativeFunction(Obj function, DriverFunction.MotionType motionType, ExpressionValueVariable initAngle, ExpressionValueVariable initAngularVel)
```

#### Parameters

`function` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)

The function of the relative.

`motionType` DriverFunction.MotionType

The motion type of the relative.

`initAngle` ExpressionValueVariable

The initial angle of the relative.

`initAngularVel` ExpressionValueVariable

The init angular vel of the relative.

## Properties

### Function

The value for function.

```csharp theme={null}
public Obj Function { get; set; }
```

#### Property Value

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

### InitAngle

The value for the initial angle. The default value is 0.

```csharp theme={null}
public ExpressionValueVariable InitAngle { get; set; }
```

#### Property Value

ExpressionValueVariable

### InitAngularVel

The value for the init angular vel. The default value is 0.

```csharp theme={null}
public ExpressionValueVariable InitAngularVel { get; set; }
```

#### Property Value

ExpressionValueVariable

### MotionType

The value for the motion type. The default value is Displacement.

```csharp theme={null}
public DriverFunction.MotionType MotionType { get; set; }
```

#### Property Value

DriverFunction.MotionType
