Class Sphere
Inheritance
System.Object
Sphere
Assembly: Eco.Core.dll
Syntax
public sealed class Sphere : ValueType
Constructors
Sphere(Vector3, Single)
Declaration
public Sphere(Vector3 center, float radius)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
center |
|
System.Single |
radius |
|
Fields
Center
Declaration
Field Value
Type |
Description |
System.Numerics.Vector3 |
|
Radius
Declaration
Field Value
Type |
Description |
System.Single |
|
Methods
Contains(Vector3)
Declaration
public bool Contains(Vector3 point)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
point |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Sphere)
Declaration
public bool Equals(Sphere other)
Parameters
Type |
Name |
Description |
Sphere |
other |
|
Returns
Type |
Description |
System.Boolean |
|
IntersectsAABB(AABB)
Declaration
public bool IntersectsAABB(AABB box)
Parameters
Type |
Name |
Description |
AABB |
box |
|
Returns
Type |
Description |
System.Boolean |
|
IntersectsSphere(Sphere)
Declaration
public bool IntersectsSphere(Sphere sphere)
Parameters
Type |
Name |
Description |
Sphere |
sphere |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods