Point2d.Subtraction (Point2d, Point2d) Operator

Subtracts two points, giving a new vector from point 2 to point 1.
public static Vector2d operator -( 
   Point2d p1
   Point2d p2 
)

Parameters

p1
Point2d

The point to subtract from.

p2
Point2d

The point to subtract with.

Return Value

Vector2d

A new vector from second point to first point.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition