> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md).

# Struct ksPredictionBehaviour

Namespace: [KS.Reactor.Client](/reactor/api-reference/ks.reactor.client.md)\
Assembly: KSUnity.dll

Contains rules for how a property behaves during prediction

```csharp
[Serializable]
public struct ksPredictionBehaviour
```

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### ksPredictionBehaviour(Types, float, float) <a href="#ks_reactor_client_kspredictionbehaviour__ctor_ks_reactor_client_kspredictionbehaviour_types_system_s" id="ks_reactor_client_kspredictionbehaviour__ctor_ks_reactor_client_kspredictionbehaviour_types_system_s"></a>

Constructor

```csharp
public ksPredictionBehaviour(ksPredictionBehaviour.Types type = Types.NONE, float min = -3.4028235E+38, float max = 3.4028235E+38)
```

#### Parameters

`type` [ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md).[Types](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md)

Type of smoothing to use during prediction

`min` [float](https://learn.microsoft.com/dotnet/api/system.single)

Min value use for [WRAP\_FLOAT](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md#KS_Reactor_Client_ksPredictionBehaviour_Types_WRAP_FLOAT)

`max` [float](https://learn.microsoft.com/dotnet/api/system.single)

Max value use for [WRAP\_FLOAT](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md#KS_Reactor_Client_ksPredictionBehaviour_Types_WRAP_FLOAT)

## Fields

### Max <a href="#ks_reactor_client_kspredictionbehaviour_max" id="ks_reactor_client_kspredictionbehaviour_max"></a>

Maximum property value. Only used for [WRAP\_FLOAT](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md#KS_Reactor_Client_ksPredictionBehaviour_Types_WRAP_FLOAT).

```csharp
public float Max
```

#### Field Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### Min <a href="#ks_reactor_client_kspredictionbehaviour_min" id="ks_reactor_client_kspredictionbehaviour_min"></a>

Minimum property value. Only used for [WRAP\_FLOAT](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md#KS_Reactor_Client_ksPredictionBehaviour_Types_WRAP_FLOAT).

```csharp
public float Min
```

#### Field Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### Type <a href="#ks_reactor_client_kspredictionbehaviour_type" id="ks_reactor_client_kspredictionbehaviour_type"></a>

Type of smoothing to use.

```csharp
public ksPredictionBehaviour.Types Type
```

#### Field Value

[ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md).[Types](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour/ks.reactor.client.kspredictionbehaviour.types.md)

## Methods

### Equals(object) <a href="#ks_reactor_client_kspredictionbehaviour_equals_system_object" id="ks_reactor_client_kspredictionbehaviour_equals_system_object"></a>

Checks if the prediction behaviour is equal to an object.

```csharp
public override bool Equals(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

obj to compare with.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True if this is equal to the object.

### GetHashCode() <a href="#ks_reactor_client_kspredictionbehaviour_gethashcode" id="ks_reactor_client_kspredictionbehaviour_gethashcode"></a>

Gets the hash code.

```csharp
public override int GetHashCode()
```

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

hash code.

## Operators

### operator ==(ksPredictionBehaviour, ksPredictionBehaviour) <a href="#ks_reactor_client_kspredictionbehaviour_op_equality_ks_reactor_client_kspredictionbehaviour_ks_react" id="ks_reactor_client_kspredictionbehaviour_op_equality_ks_reactor_client_kspredictionbehaviour_ks_react"></a>

Checks if two prediction behaviours are equal.

```csharp
public static bool operator ==(ksPredictionBehaviour lhs, ksPredictionBehaviour rhs)
```

#### Parameters

`lhs` [ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md)

`rhs` [ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True if the behaviours are the same.

### operator !=(ksPredictionBehaviour, ksPredictionBehaviour) <a href="#ks_reactor_client_kspredictionbehaviour_op_inequality_ks_reactor_client_kspredictionbehaviour_ks_rea" id="ks_reactor_client_kspredictionbehaviour_op_inequality_ks_reactor_client_kspredictionbehaviour_ks_rea"></a>

Checks if two prediction behaviours are not equal.

```csharp
public static bool operator !=(ksPredictionBehaviour lhs, ksPredictionBehaviour rhs)
```

#### Parameters

`lhs` [ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md)

`rhs` [ksPredictionBehaviour](/reactor/api-reference/ks.reactor.client/ks.reactor.client.kspredictionbehaviour.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True if the behaviours are not the same.
