示例#1
0
        public virtual bool Pick(ViewControl vc, Point scrPt)
        {
            Matrix4F normWorld = GetManipulatorMatrix();

            if (normWorld == null)
            {
                return(false);
            }
            HitRayV = vc.GetRay(scrPt, vc.Camera.ProjectionMatrix);
            HitMatrix.Set(normWorld);
            return(true);
        }
示例#2
0
        public virtual ManipulatorPickResult Pick(ViewControl vc, Point scrPt)
        {
            Matrix4F normWorld = GetManipulatorMatrix();

            if (normWorld == null)
            {
                return(ManipulatorPickResult.Miss);
            }
            HitRayV = vc.GetRay(scrPt, vc.Camera.ProjectionMatrix);
            HitMatrix.Set(normWorld);
            return(ManipulatorPickResult.DeferredBeginDrag);
        }