C# Class R3.Geometry.Sphere

Exibir arquivo Open project: roice3/Honeycombs Class Usage Examples

Public Methods

Method Description
Clone ( ) : Sphere
Equals ( object obj ) : bool
From4Points ( Vector3D s1, Vector3D s2, Vector3D s3, Vector3D s4 ) : Sphere
GetHashCode ( ) : int
Intersection ( Sphere s ) : Circle3D

Finds the intersection (a circle) between us and another sphere. Returns null if sphere centers are coincident or no intersection exists. Does not currently work for planes.

IsPointInside ( Vector3D test ) : bool
IsPointInsideOrOn ( Vector3D test ) : bool
IsPointOn ( Vector3D test ) : bool
Plane ( Vector3D normal ) : Sphere
Plane ( Vector3D offset, Vector3D normal ) : Sphere
ProjectToSurface ( Vector3D p ) : Vector3D

Radially project a point onto our surface.

Reflect ( Sphere sphere ) : void

Reflect ourselves about another sphere.

ReflectPoint ( Vector3D p ) : Vector3D

Reflect a point in us.

RotateSphere ( Sphere s, Vector3D axis, double rotation ) : void
ScaleSphere ( Sphere s, double factor ) : void
Sphere ( ) : System.Collections.Generic
Sphere ( Vector3D center, double radius ) : System.Collections.Generic

Private Methods

Method Description
Reset ( ) : void

Method Details

Clone() public method

public Clone ( ) : Sphere
return Sphere

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

From4Points() public static method

public static From4Points ( Vector3D s1, Vector3D s2, Vector3D s3, Vector3D s4 ) : Sphere
s1 Vector3D
s2 Vector3D
s3 Vector3D
s4 Vector3D
return Sphere

GetHashCode() public method

public GetHashCode ( ) : int
return int

Intersection() public method

Finds the intersection (a circle) between us and another sphere. Returns null if sphere centers are coincident or no intersection exists. Does not currently work for planes.
public Intersection ( Sphere s ) : Circle3D
s Sphere
return Circle3D

IsPointInside() public method

public IsPointInside ( Vector3D test ) : bool
test Vector3D
return bool

IsPointInsideOrOn() public method

public IsPointInsideOrOn ( Vector3D test ) : bool
test Vector3D
return bool

IsPointOn() public method

public IsPointOn ( Vector3D test ) : bool
test Vector3D
return bool

Plane() public static method

public static Plane ( Vector3D normal ) : Sphere
normal Vector3D
return Sphere

Plane() public static method

public static Plane ( Vector3D offset, Vector3D normal ) : Sphere
offset Vector3D
normal Vector3D
return Sphere

ProjectToSurface() public method

Radially project a point onto our surface.
public ProjectToSurface ( Vector3D p ) : Vector3D
p Vector3D
return Vector3D

Reflect() public method

Reflect ourselves about another sphere.
public Reflect ( Sphere sphere ) : void
sphere Sphere
return void

ReflectPoint() public method

Reflect a point in us.
public ReflectPoint ( Vector3D p ) : Vector3D
p Vector3D
return Vector3D

RotateSphere() public static method

public static RotateSphere ( Sphere s, Vector3D axis, double rotation ) : void
s Sphere
axis Vector3D
rotation double
return void

ScaleSphere() public static method

public static ScaleSphere ( Sphere s, double factor ) : void
s Sphere
factor double
return void

Sphere() public method

public Sphere ( ) : System.Collections.Generic
return System.Collections.Generic

Sphere() public method

public Sphere ( Vector3D center, double radius ) : System.Collections.Generic
center Vector3D
radius double
return System.Collections.Generic