> 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/ks.reactor.kscurve/ks.reactor.kscurve.keyframe.md).

# Struct ksCurve.Keyframe

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

Key frame data use to determine Bezier points.

```csharp
public struct ksCurve.Keyframe
```

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

### Keyframe(float, float, float, float, float, float) <a href="#ks_reactor_kscurve_keyframe__ctor_system_single_system_single_system_single_system_single_system_sin" id="ks_reactor_kscurve_keyframe__ctor_system_single_system_single_system_single_system_single_system_sin"></a>

Constructor.

```csharp
public Keyframe(float time, float value, float inTangent = 0, float outTangent = 0, float inWeight = 0.3333, float outWeight = 0.3333)
```

#### Parameters

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

Time.

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

Value.

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

Normalized slope of the line leading into the keyframe.

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

Normalized slope of the line leading out of the keyframe.

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

Weight to apply to the inbound tangent.

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

Weight to apply to the outbound tangent.

## Fields

### InTangent <a href="#ks_reactor_kscurve_keyframe_intangent" id="ks_reactor_kscurve_keyframe_intangent"></a>

Normalized slope of the line leading into the keyframe.

```csharp
public float InTangent
```

#### Field Value

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

### InWeight <a href="#ks_reactor_kscurve_keyframe_inweight" id="ks_reactor_kscurve_keyframe_inweight"></a>

Weight to apply to the inbound tangent.

```csharp
public float InWeight
```

#### Field Value

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

### OutTangent <a href="#ks_reactor_kscurve_keyframe_outtangent" id="ks_reactor_kscurve_keyframe_outtangent"></a>

Normalized slope of the line leading out of the keyframe.

```csharp
public float OutTangent
```

#### Field Value

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

### OutWeight <a href="#ks_reactor_kscurve_keyframe_outweight" id="ks_reactor_kscurve_keyframe_outweight"></a>

Weight to apply to the outbound tangent.

```csharp
public float OutWeight
```

#### Field Value

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

### Time <a href="#ks_reactor_kscurve_keyframe_time" id="ks_reactor_kscurve_keyframe_time"></a>

Keyframe time.

```csharp
public float Time
```

#### Field Value

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

### Value <a href="#ks_reactor_kscurve_keyframe_value" id="ks_reactor_kscurve_keyframe_value"></a>

Keyframe value.

```csharp
public float Value
```

#### Field Value

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