    

 ## On this page

  

 

 # Class RelativeFunction

 Last update: 09.03.2026 

<a id="VM_API_Pre_RelativeFunction"></a>

Namespace: [VM.API.Pre](VM.API.Pre.md)  
Assembly: VM.API.Pre.dll

This class represents the relative function

```csharp
public class RelativeFunction : Relative

```

#### Inheritance

object ← [Relative](VM.API.Pre.Relative.md) ← [RelativeFunction](VM.API.Pre.RelativeFunction.md)

#### Inherited Members

[Relative.Type](VM.API.Pre.Relative.md#VM_API_Pre_Relative_Type)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_API_Pre_RelativeFunction__ctor_VM_API_Pre_Obj_"></a> RelativeFunction(Obj)

Default constructor

```csharp
public RelativeFunction(Obj function)

```

#### Parameters

`function` [Obj](VM.API.Pre.Obj.md)

The function of the relative.

### <a id="VM_API_Pre_RelativeFunction__ctor_VM_API_Pre_Obj_VM_Managed_DAFUL_Constraints_DriverFunction_MotionType_VM_Models_Pre_ExpressionValueVariable_VM_Models_Pre_ExpressionValueVariable_"></a> RelativeFunction(Obj, MotionType, ExpressionValueVariable, ExpressionValueVariable)

Initializes a new instance of the  class.

```csharp
public RelativeFunction(Obj function, DriverFunction.MotionType motionType, ExpressionValueVariable initAngle, ExpressionValueVariable initAngularVel)

```

#### Parameters

`function` [Obj](VM.API.Pre.Obj.md)

The function of the relative.

`motionType` [DriverFunction](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCB/Driver.cs).[MotionType](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCB/Driver.cs)

The motion type of the relative.

`initAngle` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)

The initial angle of the relative.

`initAngularVel` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)

The init angular vel of the relative.

## Properties

### <a id="VM_API_Pre_RelativeFunction_Function"></a> Function

The value for function.

```csharp
public Obj Function { get; set; }

```

#### Property Value

[Obj](VM.API.Pre.Obj.md)

### <a id="VM_API_Pre_RelativeFunction_InitAngle"></a> InitAngle

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

```csharp
public ExpressionValueVariable InitAngle { get; set; }

```

#### Property Value

[ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)

### <a id="VM_API_Pre_RelativeFunction_InitAngularVel"></a> InitAngularVel

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

```csharp
public ExpressionValueVariable InitAngularVel { get; set; }

```

#### Property Value

[ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)

### <a id="VM_API_Pre_RelativeFunction_MotionType"></a> MotionType

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

```csharp
public DriverFunction.MotionType MotionType { get; set; }

```

#### Property Value

[DriverFunction](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCB/Driver.cs).[MotionType](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCB/Driver.cs)