Exemple #1
0
        public PointF GetFishEye(PointF eye, PointF position, Facing direction)
        {
            var transform = new Matrix();
            var eyeArray  = eye.ArrayOfOne();

            Scale(BodySize * 0.5f, eyeArray, direction == Facing.Left);
            transform.Translate(position.X, position.Y, MatrixOrder.Append);
            transform.TransformPoints(eyeArray);
            return(eyeArray.Single());
        }