Struct SphereBounds4
Bounding with shape sphere
public struct SphereBounds4
Constructors
SphereBounds4(Bounds4)
Create a sphere from box bounding
public SphereBounds4(Bounds4 bound)
SphereBounds4(Vector4, Single)
Create sphere bounding
public SphereBounds4(Vector4 center, float radius)
Fields
center
Center position of the sphere
public Vector4 center
radius
Radius of the sphere
public float radius
Methods
Contains(Vector4)
Is this sphere contains the point?
public bool Contains(Vector4 point)
IsIntersecting(Plane4, SphereBounds4)
Is the sphere overlap the plane?
public static bool IsIntersecting(Plane4 plane, SphereBounds4 sphere)
IsIntersecting(SphereBounds4, SphereBounds4)
Is both sphere colliding?
public static bool IsIntersecting(SphereBounds4 a, SphereBounds4 b)