> 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.unity/ks.reactor.client.unity.kscylinderdata.md).

# Struct ksCylinderData

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

Cylinder dimension data used as a key in mesh caches.

```csharp
public struct ksCylinderData
```

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

### ksCylinderData(float, float, Axis, int) <a href="#ks_reactor_client_unity_kscylinderdata__ctor_system_single_system_single_ks_reactor_ksshape_axis_sys" id="ks_reactor_client_unity_kscylinderdata__ctor_system_single_system_single_ks_reactor_ksshape_axis_sys"></a>

Constructor

```csharp
public ksCylinderData(float radius, float height, ksShape.Axis direction, int numSides)
```

#### Parameters

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

Radius of the cylinder.

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

Height of the cylinder.

`direction` [ksShape](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md).[Axis](/reactor/api-reference/ks.reactor/ks.reactor.ksshape/ks.reactor.ksshape.axis.md)

Axis alignment.

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

Number of sides used to appoximate the cylinder.

## Fields

### Direction <a href="#ks_reactor_client_unity_kscylinderdata_direction" id="ks_reactor_client_unity_kscylinderdata_direction"></a>

Direction

```csharp
public ksShape.Axis Direction
```

#### Field Value

[ksShape](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md).[Axis](/reactor/api-reference/ks.reactor/ks.reactor.ksshape/ks.reactor.ksshape.axis.md)

### Height <a href="#ks_reactor_client_unity_kscylinderdata_height" id="ks_reactor_client_unity_kscylinderdata_height"></a>

Height

```csharp
public float Height
```

#### Field Value

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

### NumSides <a href="#ks_reactor_client_unity_kscylinderdata_numsides" id="ks_reactor_client_unity_kscylinderdata_numsides"></a>

Number of sides

```csharp
public int NumSides
```

#### Field Value

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

### Radius <a href="#ks_reactor_client_unity_kscylinderdata_radius" id="ks_reactor_client_unity_kscylinderdata_radius"></a>

Radius

```csharp
public float Radius
```

#### Field Value

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

## Methods

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

Checks if this cylinder is equal to an object.

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

#### Parameters

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

Object to compare with.

#### Returns

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

True if this and the object are the same.

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

Returns the hash code.

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

#### Returns

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

Hash code.

## Operators

### operator ==(ksCylinderData, ksCylinderData) <a href="#ks_reactor_client_unity_kscylinderdata_op_equality_ks_reactor_client_unity_kscylinderdata_ks_reactor" id="ks_reactor_client_unity_kscylinderdata_op_equality_ks_reactor_client_unity_kscylinderdata_ks_reactor"></a>

Checks if two cylinders are the same.

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

#### Parameters

`lhs` [ksCylinderData](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kscylinderdata.md)

Cylinder on the left hand side of the operator.

`rhs` [ksCylinderData](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kscylinderdata.md)

Cylinder on the right hand side of the operator.

#### Returns

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

True the compared cylinders have the same radius, height, direction, and sides.

### operator !=(ksCylinderData, ksCylinderData) <a href="#ks_reactor_client_unity_kscylinderdata_op_inequality_ks_reactor_client_unity_kscylinderdata_ks_react" id="ks_reactor_client_unity_kscylinderdata_op_inequality_ks_reactor_client_unity_kscylinderdata_ks_react"></a>

Checks if two cylinders are different.

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

#### Parameters

`lhs` [ksCylinderData](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kscylinderdata.md)

Cylinder on the left hand side of the operator.

`rhs` [ksCylinderData](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kscylinderdata.md)

Cylinder on the right hand side of the operator.

#### Returns

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

True the compared cylinders are not the same.
