Point2d.Subtraction (Point2d, Point2d) Operator

Subtracts two points, giving a new vector from point 2 to point 1.
Public Shared Operator -( _ 
ByVal p1 As Point2d, _ 
ByVal p2 As Point2d
) As Vector2d
This language is not supported or no code example is available.
public static Vector2d operator -( 
Point2d p1
Point2d p2 
)
This language is not supported or no code example is available.
public:  
static Vector2d^ operator -( 
Point2d^ p1
Point2d^ p2 
)
This language is not supported or no code example is available.
JScript supports the use of overloaded operators, but not the declaration of new ones.
This language is not supported or no code example is available.

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