Struct BoundingSphere
- Namespace
- Lime
- Assembly
- Lime.dll
Representation of solid sphere.
public struct BoundingSphere : IEquatable<BoundingSphere>
- Implements
- Inherited Members
Constructors
BoundingSphere(Vector3, float)
public BoundingSphere(Vector3 center, float radius)
Parameters
Fields
Center
[YuzuMember]
public Vector3 Center
Field Value
Radius
[YuzuMember]
public float Radius
Field Value
Methods
Contains(ref BoundingSphere)
Test if a sphere is fully inside, outside, or just intersecting the sphere.
public ContainmentType Contains(ref BoundingSphere sphere)
Parameters
sphere
BoundingSphere
Returns
Contains(ref Vector3)
Test if a vector is fully inside, outside, or just intersecting the sphere.
public ContainmentType Contains(ref Vector3 point)
Parameters
point
Vector3
Returns
CreateFromPoints(IEnumerable<Vector3>)
Creates the smallest sphere that can contain a specified list of points.
public static BoundingSphere CreateFromPoints(IEnumerable<Vector3> points)
Parameters
points
IEnumerable<Vector3>
Returns
Equals(BoundingSphere)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BoundingSphere other)
Parameters
other
BoundingSphereAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Transform(Matrix44)
Creates a new sphere that contains a transformation of translation and scale from this sphere by the specified Matrix.
public BoundingSphere Transform(Matrix44 matrix)
Parameters
matrix
Matrix44
Returns
Operators
operator ==(BoundingSphere, BoundingSphere)
public static bool operator ==(BoundingSphere a, BoundingSphere b)
Parameters
Returns
operator !=(BoundingSphere, BoundingSphere)
public static bool operator !=(BoundingSphere a, BoundingSphere b)