C# Class HelixToolkit.Wpf.Ray3D

Represents a 3D ray.
显示文件 Open project: litdev1/LitDev Class Usage Examples

Public Methods

Method Description
GetNearest ( System.Windows.Media.Media3D.Point3D p3 ) : System.Windows.Media.Media3D.Point3D

Gets the point on the ray that is nearest the specified point.

PlaneIntersection ( System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal ) : Point3D?

Finds the intersection with a plane.

PlaneIntersection ( System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal, System.Windows.Media.Media3D.Point3D &intersection ) : bool

Finds the intersection with a plane.

Ray3D ( ) : System.Windows.Media.Media3D

Initializes a new instance of the Ray3D class.

Ray3D ( System.Windows.Media.Media3D.Point3D p0, System.Windows.Media.Media3D.Point3D p1 ) : System.Windows.Media.Media3D

Initializes a new instance of the Ray3D class.

Ray3D ( System.Windows.Media.Media3D.Point3D o, System.Windows.Media.Media3D.Vector3D d ) : System.Windows.Media.Media3D

Initializes a new instance of the Ray3D class.

Method Details

GetNearest() public method

Gets the point on the ray that is nearest the specified point.
public GetNearest ( System.Windows.Media.Media3D.Point3D p3 ) : System.Windows.Media.Media3D.Point3D
p3 System.Windows.Media.Media3D.Point3D /// The point. ///
return System.Windows.Media.Media3D.Point3D

PlaneIntersection() public method

Finds the intersection with a plane.
public PlaneIntersection ( System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal ) : Point3D?
position System.Windows.Media.Media3D.Point3D /// A point on the plane. ///
normal System.Windows.Media.Media3D.Vector3D /// The normal of the plane. ///
return Point3D?

PlaneIntersection() public method

Finds the intersection with a plane.
public PlaneIntersection ( System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal, System.Windows.Media.Media3D.Point3D &intersection ) : bool
position System.Windows.Media.Media3D.Point3D A point on the plane.
normal System.Windows.Media.Media3D.Vector3D The normal of the plane.
intersection System.Windows.Media.Media3D.Point3D The intersection point.
return bool

Ray3D() public method

Initializes a new instance of the Ray3D class.
public Ray3D ( ) : System.Windows.Media.Media3D
return System.Windows.Media.Media3D

Ray3D() public method

Initializes a new instance of the Ray3D class.
public Ray3D ( System.Windows.Media.Media3D.Point3D p0, System.Windows.Media.Media3D.Point3D p1 ) : System.Windows.Media.Media3D
p0 System.Windows.Media.Media3D.Point3D /// The p0. ///
p1 System.Windows.Media.Media3D.Point3D /// The p1. ///
return System.Windows.Media.Media3D

Ray3D() public method

Initializes a new instance of the Ray3D class.
public Ray3D ( System.Windows.Media.Media3D.Point3D o, System.Windows.Media.Media3D.Vector3D d ) : System.Windows.Media.Media3D
o System.Windows.Media.Media3D.Point3D /// The o. ///
d System.Windows.Media.Media3D.Vector3D /// The sender. ///
return System.Windows.Media.Media3D