예제 #1
0
 public Point2i Sub(Vector2i v)
 {
     return(new Point2i(this.X - v.X, this.Y - v.Y));
 }
예제 #2
0
        public double InvLerp(Point2i p2, Point2i pLerp)
        {
            Vector2i v12 = p2.Sub(this);

            return(v12.Proj(pLerp.Sub(this)));
        }
예제 #3
0
 public Point2i Add(Vector2i v)
 {
     return(new Point2i(this.X + v.X, this.Y + v.Y));
 }