Пример #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));
 }