C# Class Axiom.Math.Sphere

A standard sphere, used mostly for bounds checking.
A sphere in math texts is normally represented by the function x^2 + y^2 + z^2 = r^2 (for sphere's centered on the origin). We store spheres simply as a center point and a radius.
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Intersects ( AxisAlignedBox box ) : bool

Returns whether or not this sphere interects a box.

Intersects ( Plane plane ) : bool

Returns whether or not this sphere interects a plane.

Intersects ( Sphere sphere ) : bool

Tests for intersection between this sphere and another sphere.

Intersects ( Vector3 vector ) : bool

Returns whether or not this sphere interects a Vector3.

Sphere ( ) : System

Creates a unit sphere centered at the origin.

Sphere ( Vector3 center, Real radius ) : System

Creates an arbitrary spehere.

operator ( ) : bool

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Intersects() public méthode

Returns whether or not this sphere interects a box.
public Intersects ( AxisAlignedBox box ) : bool
box AxisAlignedBox
Résultat bool

Intersects() public méthode

Returns whether or not this sphere interects a plane.
public Intersects ( Plane plane ) : bool
plane Plane
Résultat bool

Intersects() public méthode

Tests for intersection between this sphere and another sphere.
public Intersects ( Sphere sphere ) : bool
sphere Sphere Other sphere.
Résultat bool

Intersects() public méthode

Returns whether or not this sphere interects a Vector3.
public Intersects ( Vector3 vector ) : bool
vector Vector3
Résultat bool

Sphere() public méthode

Creates a unit sphere centered at the origin.
public Sphere ( ) : System
Résultat System

Sphere() public méthode

Creates an arbitrary spehere.
public Sphere ( Vector3 center, Real radius ) : System
center Vector3 Center point of the sphere.
radius Real Radius of the sphere.
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool