Beispiel #1
0
        public override void sendMouse(vec2 current, vec2 oldmouse)
        {
            ArcBall ball  = new ArcBall(new vec2(Width / 2.0f, Height / 2.0f), Math.Min(Height, Width) / 2.0f);
            quat    final = ball.rotation(tranform(oldmouse), tranform(current));

            rotation = quat.Combine(rotation, final);
        }