    

 ## On this page

  

 

 # Class RelativeFunction

 Last update: 16.07.2025 

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](https://learn.microsoft.com/dotnet/api/system.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

### RelativeFunction(Obj)

Default constructor

```csharp
public RelativeFunction(Obj function)

```

#### Parameters

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

The function of the relative.

### 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.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
public Obj Function { get; set; }

```

#### Property Value

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

### InitAngle

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

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

```

#### Property Value

ExpressionValueVariable

### InitAngularVel

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

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

```

#### Property Value

ExpressionValueVariable

### MotionType

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

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

```

#### Property Value

DriverFunction.MotionType