C# Class R3.Geometry.Sphere

Afficher le fichier Open project: roice3/Honeycombs Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Reset ( ) : void

Method Details

Clone() public méthode

public Clone ( ) : Sphere
Résultat Sphere

Equals() public méthode

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

From4Points() public static méthode

public static From4Points ( Vector3D s1, Vector3D s2, Vector3D s3, Vector3D s4 ) : Sphere
s1 Vector3D
s2 Vector3D
s3 Vector3D
s4 Vector3D
Résultat Sphere

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Intersection() public méthode

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
Résultat Circle3D

IsPointInside() public méthode

public IsPointInside ( Vector3D test ) : bool
test Vector3D
Résultat bool

IsPointInsideOrOn() public méthode

public IsPointInsideOrOn ( Vector3D test ) : bool
test Vector3D
Résultat bool

IsPointOn() public méthode

public IsPointOn ( Vector3D test ) : bool
test Vector3D
Résultat bool

Plane() public static méthode

public static Plane ( Vector3D normal ) : Sphere
normal Vector3D
Résultat Sphere

Plane() public static méthode

public static Plane ( Vector3D offset, Vector3D normal ) : Sphere
offset Vector3D
normal Vector3D
Résultat Sphere

ProjectToSurface() public méthode

Radially project a point onto our surface.
public ProjectToSurface ( Vector3D p ) : Vector3D
p Vector3D
Résultat Vector3D

Reflect() public méthode

Reflect ourselves about another sphere.
public Reflect ( Sphere sphere ) : void
sphere Sphere
Résultat void

ReflectPoint() public méthode

Reflect a point in us.
public ReflectPoint ( Vector3D p ) : Vector3D
p Vector3D
Résultat Vector3D

RotateSphere() public static méthode

public static RotateSphere ( Sphere s, Vector3D axis, double rotation ) : void
s Sphere
axis Vector3D
rotation double
Résultat void

ScaleSphere() public static méthode

public static ScaleSphere ( Sphere s, double factor ) : void
s Sphere
factor double
Résultat void

Sphere() public méthode

public Sphere ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Sphere() public méthode

public Sphere ( Vector3D center, double radius ) : System.Collections.Generic
center Vector3D
radius double
Résultat System.Collections.Generic