Table of Contents

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

center Vector3
radius float

Fields

Center

[YuzuMember]
public Vector3 Center

Field Value

Vector3

Radius

[YuzuMember]
public float Radius

Field Value

float

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

ContainmentType

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

ContainmentType

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

BoundingSphere

Equals(BoundingSphere)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BoundingSphere other)

Parameters

other BoundingSphere

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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

BoundingSphere

Operators

operator ==(BoundingSphere, BoundingSphere)

public static bool operator ==(BoundingSphere a, BoundingSphere b)

Parameters

a BoundingSphere
b BoundingSphere

Returns

bool

operator !=(BoundingSphere, BoundingSphere)

public static bool operator !=(BoundingSphere a, BoundingSphere b)

Parameters

a BoundingSphere
b BoundingSphere

Returns

bool