Table of Contents

Struct Point2d

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

///

[Serializable]
public record struct Point2d : IEquatable<Point2d>
Implements
Inherited Members

Constructors

Point2d(double, double)

///

Fields

X
Y

Methods

Add(Point2d)

Shifts point by a certain offset

CrossProduct(Point2d)

Calculates the cross product of two 2D vectors.

CrossProduct(Point2d, Point2d)

Calculates the cross product of two 2D vectors.

Distance(Point2d, Point2d)

Returns the distance between the specified two points

DistanceTo(Point2d)

Returns the distance between the specified two points

DotProduct(Point2d)

Calculates the dot product of two 2D vectors.

DotProduct(Point2d, Point2d)

Calculates the dot product of two 2D vectors.

FromPoint(Point)
FromVec2d(Vec2d)
Multiply(double)

Shifts point by a certain offset

Negate()

Unary minus operator

Plus()

Unary plus operator

Subtract(Point2d)

Shifts point by a certain offset

ToPoint()
ToVec2d()

Operators

operator +(Point2d, Point2d)

Shifts point by a certain offset

explicit operator Point(Point2d)
implicit operator Point2d(Point)
implicit operator Vec2d(Point2d)
implicit operator Point2d(Vec2d)
operator *(Point2d, double)

Shifts point by a certain offset

operator -(Point2d, Point2d)

Shifts point by a certain offset

operator -(Point2d)

Unary minus operator

operator +(Point2d)

Unary plus operator