C# 클래스 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.
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Intersects() 공개 메소드

Returns whether or not this sphere interects a box.
public Intersects ( AxisAlignedBox box ) : bool
box AxisAlignedBox
리턴 bool

Intersects() 공개 메소드

Returns whether or not this sphere interects a plane.
public Intersects ( Plane plane ) : bool
plane Plane
리턴 bool

Intersects() 공개 메소드

Tests for intersection between this sphere and another sphere.
public Intersects ( Sphere sphere ) : bool
sphere Sphere Other sphere.
리턴 bool

Intersects() 공개 메소드

Returns whether or not this sphere interects a Vector3.
public Intersects ( Vector3 vector ) : bool
vector Vector3
리턴 bool

Sphere() 공개 메소드

Creates a unit sphere centered at the origin.
public Sphere ( ) : System
리턴 System

Sphere() 공개 메소드

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

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool