Vector3 GetSelectedShape(int cx, int cy) { Renderer rv = GetRenderer(); PickHelper ph = new PickHelper(); ph.Initialize(rv); if (!ph.Pick(cx, cy)) { return(null); } return(ph.GetPointOnShape()); }
Vector3 GetPointOnShape(int cx, int cy) { Platform.Vector3 hitPoint = null; Renderer rv = GetRenderer(); PickHelper pickHelper = new PickHelper(); pickHelper.Initialize(rv); if (pickHelper.Pick(cx, cy)) { hitPoint = pickHelper.GetPointOnShape(); } return hitPoint; }
Vector3 GetPointOnShape(int cx, int cy) { Platform.Vector3 hitPoint = null; Renderer rv = GetRenderer(); PickHelper pickHelper = new PickHelper(); pickHelper.Initialize(rv); if (pickHelper.Pick(cx, cy)) { hitPoint = pickHelper.GetPointOnShape(); } return(hitPoint); }