C# Класс HelixToolkit.Wpf.BoundingSphere

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

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

Метод Описание
BoundingSphere ( ) : System

Initializes a new instance of the BoundingSphere class.

BoundingSphere ( System.Windows.Media.Media3D.Point3D center, double diameter ) : System

Initializes a new instance of the BoundingSphere class.

Contains ( System.Windows.Media.Media3D.Point3D point ) : bool

Determines if the specified point is inside the sphere.

CreateFromPoints ( IEnumerable points ) : BoundingSphere

Creates a bounding sphere from a collection of points.

CreateFromRect3D ( System.Windows.Media.Media3D.Rect3D rect ) : BoundingSphere

Creates a BoundingSphere from a Rect3D.

CreateMerged ( BoundingSphere original, BoundingSphere additional ) : BoundingSphere

Creates a merged bounding sphere.

DistanceFrom ( System.Windows.Media.Media3D.Point3D point ) : double

Calculates the distance from a point to the nearest point on the sphere surface.

Intersects ( BoundingSphere sphere ) : bool

Determines if the sphere intersects with the specified sphere.

RayIntersection ( Ray3D ray, System.Windows.Media.Media3D.Point3D &result ) : bool

Gets the intersection with the specified ray.

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

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

Initializes a new instance of the BoundingSphere class.
public BoundingSphere ( ) : System
Результат System

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

Initializes a new instance of the BoundingSphere class.
public BoundingSphere ( System.Windows.Media.Media3D.Point3D center, double diameter ) : System
center System.Windows.Media.Media3D.Point3D /// The center. ///
diameter double /// The diameter. ///
Результат System

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

Determines if the specified point is inside the sphere.
public Contains ( System.Windows.Media.Media3D.Point3D point ) : bool
point System.Windows.Media.Media3D.Point3D /// The point. ///
Результат bool

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

Creates a bounding sphere from a collection of points.
public static CreateFromPoints ( IEnumerable points ) : BoundingSphere
points IEnumerable /// The points. ///
Результат BoundingSphere

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

Creates a BoundingSphere from a Rect3D.
public static CreateFromRect3D ( System.Windows.Media.Media3D.Rect3D rect ) : BoundingSphere
rect System.Windows.Media.Media3D.Rect3D /// The 3D rectangle. ///
Результат BoundingSphere

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

Creates a merged bounding sphere.
public static CreateMerged ( BoundingSphere original, BoundingSphere additional ) : BoundingSphere
original BoundingSphere /// The original. ///
additional BoundingSphere /// The additional. ///
Результат BoundingSphere

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

Calculates the distance from a point to the nearest point on the sphere surface.
public DistanceFrom ( System.Windows.Media.Media3D.Point3D point ) : double
point System.Windows.Media.Media3D.Point3D /// The point. ///
Результат double

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

Determines if the sphere intersects with the specified sphere.
public Intersects ( BoundingSphere sphere ) : bool
sphere BoundingSphere /// The sphere to check against. ///
Результат bool

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

Gets the intersection with the specified ray.
public RayIntersection ( Ray3D ray, System.Windows.Media.Media3D.Point3D &result ) : bool
ray Ray3D The ray.
result System.Windows.Media.Media3D.Point3D The intersection point(s).
Результат bool