internal void RaiseMouseUpEvent(HitTestResult hitTestResult, Point p, Viewport3DX viewport = null) { OnMouse3DUp?.Invoke(this, new MouseUp3DEventArgs(hitTestResult, p, viewport)); }
/// <summary> /// Initializes a new instance of the <see cref="ZoomRectangleHandler"/> class. /// </summary> /// <param name="viewport"> /// The viewport. /// </param> public ZoomRectangleHandler(Viewport3DX viewport) : base(viewport) { }
/// <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)); }
/// <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())); }
public static Ray UnProject(this Viewport3DX viewport, Point point2d) { return(UnProject(viewport, point2d.ToVector2())); }