Struct Sphere
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
Not really a sphere, actually now an AABB centred on x,y,z, but we keep the name for API consistency
public struct Sphere
- Inherited Members
- Extension Methods
Constructors
Sphere(float, float, float, float, float, float)
public Sphere(float x1, float y1, float z1, float dx, float dy, float dz)
Parameters
Fields
radius
public float radius
Field Value
radiusY
public float radiusY
Field Value
radiusZ
public float radiusZ
Field Value
sqrt3half
public const float sqrt3half = 0.8660254
Field Value
x
public float x
Field Value
y
public float y
Field Value
z
public float z
Field Value
Methods
BoundingSphereForCube(float, float, float, float)
public static Sphere BoundingSphereForCube(float x, float y, float z, float size)