C# Class HelixToolkit.Wpf.BoundingSphere

Represents a bounding sphere.
显示文件 Open project: litdev1/LitDev Class Usage Examples

Public Methods

Method Description
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.

Method Details

BoundingSphere() public method

Initializes a new instance of the BoundingSphere class.
public BoundingSphere ( ) : System
return System

BoundingSphere() public method

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. ///
return System

Contains() public method

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. ///
return bool

CreateFromPoints() public static method

Creates a bounding sphere from a collection of points.
public static CreateFromPoints ( IEnumerable points ) : BoundingSphere
points IEnumerable /// The points. ///
return BoundingSphere

CreateFromRect3D() public static method

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. ///
return BoundingSphere

CreateMerged() public static method

Creates a merged bounding sphere.
public static CreateMerged ( BoundingSphere original, BoundingSphere additional ) : BoundingSphere
original BoundingSphere /// The original. ///
additional BoundingSphere /// The additional. ///
return BoundingSphere

DistanceFrom() public method

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. ///
return double

Intersects() public method

Determines if the sphere intersects with the specified sphere.
public Intersects ( BoundingSphere sphere ) : bool
sphere BoundingSphere /// The sphere to check against. ///
return bool

RayIntersection() public method

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).
return bool