Show / Hide Table of Contents

Class Sphere

Inheritance
System.Object
Sphere
Namespace: Eco.Core.Utils
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
public Vector3 Center
Field Value
Type Description
System.Numerics.Vector3

Radius

Declaration
public float Radius
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

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾