> 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.kssphere.md).

# Class ksSphere

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

Sphere.

```csharp
public class ksSphere : ksShape
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ksShape](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md) ← [ksSphere](/reactor/api-reference/ks.reactor/ks.reactor.kssphere.md)

#### Inherited Members

[ksShape.m\_shapeType](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md#KS_Reactor_ksShape_m_shapeType), [ksShape.Type](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md#KS_Reactor_ksShape_Type), [ksShape.IsQueryShape](/reactor/api-reference/ks.reactor/ks.reactor.ksshape.md#KS_Reactor_ksShape_IsQueryShape), [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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [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

### ksSphere(float) <a href="#ks_reactor_kssphere__ctor_system_single" id="ks_reactor_kssphere__ctor_system_single"></a>

Constructs a sphere with a given radius.

```csharp
public ksSphere(float radius)
```

#### Parameters

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

## Properties

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

Gets/Sets the sphere radius.

```csharp
public float Radius { get; set; }
```

#### Property Value

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