C# Класс R3.Geometry.Sphere

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Reset ( ) : void

Описание методов

Clone() публичный Метод

public Clone ( ) : Sphere
Результат Sphere

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

From4Points() публичный статический Метод

public static From4Points ( Vector3D s1, Vector3D s2, Vector3D s3, Vector3D s4 ) : Sphere
s1 Vector3D
s2 Vector3D
s3 Vector3D
s4 Vector3D
Результат Sphere

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Intersection() публичный Метод

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
Результат Circle3D

IsPointInside() публичный Метод

public IsPointInside ( Vector3D test ) : bool
test Vector3D
Результат bool

IsPointInsideOrOn() публичный Метод

public IsPointInsideOrOn ( Vector3D test ) : bool
test Vector3D
Результат bool

IsPointOn() публичный Метод

public IsPointOn ( Vector3D test ) : bool
test Vector3D
Результат bool

Plane() публичный статический Метод

public static Plane ( Vector3D normal ) : Sphere
normal Vector3D
Результат Sphere

Plane() публичный статический Метод

public static Plane ( Vector3D offset, Vector3D normal ) : Sphere
offset Vector3D
normal Vector3D
Результат Sphere

ProjectToSurface() публичный Метод

Radially project a point onto our surface.
public ProjectToSurface ( Vector3D p ) : Vector3D
p Vector3D
Результат Vector3D

Reflect() публичный Метод

Reflect ourselves about another sphere.
public Reflect ( Sphere sphere ) : void
sphere Sphere
Результат void

ReflectPoint() публичный Метод

Reflect a point in us.
public ReflectPoint ( Vector3D p ) : Vector3D
p Vector3D
Результат Vector3D

RotateSphere() публичный статический Метод

public static RotateSphere ( Sphere s, Vector3D axis, double rotation ) : void
s Sphere
axis Vector3D
rotation double
Результат void

ScaleSphere() публичный статический Метод

public static ScaleSphere ( Sphere s, double factor ) : void
s Sphere
factor double
Результат void

Sphere() публичный Метод

public Sphere ( ) : System.Collections.Generic
Результат System.Collections.Generic

Sphere() публичный Метод

public Sphere ( Vector3D center, double radius ) : System.Collections.Generic
center Vector3D
radius double
Результат System.Collections.Generic