Exemplo n.º 1
0
 internal void RaiseMouseUpEvent(HitTestResult hitTestResult, Point p, Viewport3DX viewport = null)
 {
     OnMouse3DUp?.Invoke(this, new MouseUp3DEventArgs(hitTestResult, p, viewport));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZoomRectangleHandler"/> class.
 /// </summary>
 /// <param name="viewport">
 /// The viewport.
 /// </param>
 public ZoomRectangleHandler(Viewport3DX viewport)
     : base(viewport)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Un-project a point from the screen (2D) to a point on plane (3D)
 /// </summary>
 /// <param name="viewport">
 /// The viewport.
 /// </param>
 /// <param name="p">
 /// The 2D point.
 /// </param>
 /// <param name="position">
 /// plane position
 /// </param>
 /// <param name="normal">
 /// plane normal
 /// </param>
 /// <returns>
 /// A 3D point.
 /// </returns>
 public static Vector3?UnProjectOnPlane(this Viewport3DX viewport, Point p, Vector3 position, Vector3 normal)
 {
     return(viewport.UnProjectOnPlane(p.ToVector2(), position, normal));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Finds the hits for a given 2D viewport position.
 /// </summary>
 /// <param name="viewport">
 /// The viewport.
 /// </param>
 /// <param name="position">
 /// The position.
 /// </param>
 /// <returns>
 /// List of hits, sorted with the nearest hit first.
 /// </returns>
 public static IList <HitTestResult> FindHits(this Viewport3DX viewport, Point position)
 {
     return(viewport.FindHits(position.ToVector2()));
 }
Exemplo n.º 5
0
 public static Ray UnProject(this Viewport3DX viewport, Point point2d)
 {
     return(UnProject(viewport, point2d.ToVector2()));
 }