Point3d.Subtraction (Point3d, Point3d) Operator

Subtract two points, with a vector as result.
Public Shared Operator -( _ 
ByVal p1 As Point3d, _ 
ByVal p2 As Point3d
) As Vector3d
This language is not supported or no code example is available.
public static Vector3d operator -( 
Point3d p1
Point3d p2 
)
This language is not supported or no code example is available.
public:  
static Vector3d^ operator -( 
Point3d^ p1
Point3d^ 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
Point3d

The 'to' point for the vector.

p2
Point3d

The 'from' point fro the vector.

Return Value

Vector3d

A vector from p2 to p1.

.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