Table of Contents

Struct Point2f

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll
[Serializable]
public record struct Point2f : IEquatable<Point2f>
Implements
Inherited Members

Constructors

Point2f(float, float)

Fields

X
Y

Methods

Add(Point2f)

Shifts point by a certain offset

CrossProduct(Point2f)

Calculates the cross product of two 2D vectors.

CrossProduct(Point2f, Point2f)

Calculates the cross product of two 2D vectors.

Distance(Point2f, Point2f)

Returns the distance between the specified two points

DistanceTo(Point2f)

Returns the distance between the specified two points

DotProduct(Point2f)

Calculates the dot product of two 2D vectors.

DotProduct(Point2f, Point2f)

Calculates the dot product of two 2D vectors.

FromPoint(Point)
FromVec2f(Vec2f)
Multiply(double)

Shifts point by a certain offset

Negate()

Unary minus operator

Plus()

Unary plus operator

Subtract(Point2f)

Shifts point by a certain offset

ToPoint()
ToVec2f()

Operators

operator +(Point2f, Point2f)

Shifts point by a certain offset

explicit operator Point(Point2f)
implicit operator Point2f(Point)
implicit operator Vec2f(Point2f)
implicit operator Point2f(Vec2f)
operator *(Point2f, double)

Shifts point by a certain offset

operator -(Point2f, Point2f)

Shifts point by a certain offset

operator -(Point2f)

Unary minus operator

operator +(Point2f)

Unary plus operator