C# 클래스 HelixToolkit.Wpf.BoundingSphere

Represents a bounding sphere.
파일 보기 프로젝트 열기: litdev1/LitDev 1 사용 예제들

공개 메소드들

메소드 설명
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