Search Results for

    Show / Hide Table of Contents

    Struct Point2f

    Represents a 2D point with single-precision floating-point coordinates.

    Implements
    IEquatable<Point2f>
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public struct Point2f : IEquatable<Point2f>

    Constructors

    | Improve this Doc View Source

    Point2f(Point)

    Initializes a new instance of the Point2f structure from the specified Point structure.

    Declaration
    public Point2f(Point point)
    Parameters
    Type Name Description
    Point point

    The Point used to initialize this instance.

    | Improve this Doc View Source

    Point2f(Single, Single)

    Initializes a new instance of the Point2f structure from the specified coordinates.

    Declaration
    public Point2f(float x, float y)
    Parameters
    Type Name Description
    Single x

    The x-coordinate of the point.

    Single y

    The y-coordinate of the point.

    Fields

    | Improve this Doc View Source

    X

    The x-coordinate of the point.

    Declaration
    public float X
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    Y

    The y-coordinate of the point.

    Declaration
    public float Y
    Field Value
    Type Description
    Single

    Properties

    | Improve this Doc View Source

    Zero

    Returns a Point2f that has X and Y values set to zero.

    Declaration
    public static Point2f Zero { get; }
    Property Value
    Type Description
    Point2f

    Methods

    | Improve this Doc View Source

    Equals(Point2f)

    Returns a value indicating whether this instance has the same coordinates as a specified Point2f structure.

    Declaration
    public bool Equals(Point2f other)
    Parameters
    Type Name Description
    Point2f other

    The Point2f structure to compare to this instance.

    Returns
    Type Description
    Boolean

    true if other has the same X and Y coordinates as this instance; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Tests to see whether the specified object is a Point2f structure with the same coordinates as this Point2f structure.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The to test.

    Returns
    Type Description
    Boolean

    true if obj is a Point2f and has the same X and Y coordinates as this Point2f; otherwise, false.

    | Improve this Doc View Source

    GetHashCode()

    Returns a hash code for this Point2f structure.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    An integer value that specifies a hash value for this Point2f structure.

    | Improve this Doc View Source

    ToString()

    Creates a representation of this Point2f structure.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A containing the X and Y values of this Point2f structure.

    Operators

    | Improve this Doc View Source

    Addition(Point2f, Point2f)

    Adds two Point2f structures.

    Declaration
    public static Point2f operator +(Point2f left, Point2f right)
    Parameters
    Type Name Description
    Point2f left

    The Point2f structure on the left of the addition operator.

    Point2f right

    The Point2f structure on the right of the addition operator.

    Returns
    Type Description
    Point2f

    The Point2f that is the result of adding the left and right points.

    | Improve this Doc View Source

    Equality(Point2f, Point2f)

    Tests whether two Point2f structures are equal.

    Declaration
    public static bool operator ==(Point2f left, Point2f right)
    Parameters
    Type Name Description
    Point2f left

    The Point2f structure on the left of the equality operator.

    Point2f right

    The Point2f structure on the right of the equality operator.

    Returns
    Type Description
    Boolean

    true if left and right have equal X and Y coordinates; otherwise, false.

    | Improve this Doc View Source

    Inequality(Point2f, Point2f)

    Tests whether two Point2f structures are different.

    Declaration
    public static bool operator !=(Point2f left, Point2f right)
    Parameters
    Type Name Description
    Point2f left

    The Point2f structure on the left of the inequality operator.

    Point2f right

    The Point2f structure on the right of the inequality operator.

    Returns
    Type Description
    Boolean

    true if left and right differ either in X or Y coordinates; false if left and right are equal.

    | Improve this Doc View Source

    Multiply(Point2f, Single)

    Multiplies a Point2f structure by an integer scalar.

    Declaration
    public static Point2f operator *(Point2f point, float scalar)
    Parameters
    Type Name Description
    Point2f point

    The Point2f structure to multiply by the scalar.

    Single scalar

    The scalar by which to multiply the point.

    Returns
    Type Description
    Point2f

    The Point2f that is the result of multiplying point by scalar.

    | Improve this Doc View Source

    Multiply(Single, Point2f)

    Multiplies a Point2f structure by an integer scalar.

    Declaration
    public static Point2f operator *(float scalar, Point2f point)
    Parameters
    Type Name Description
    Single scalar

    The scalar by which to multiply the point.

    Point2f point

    The Point2f structure to multiply by the scalar.

    Returns
    Type Description
    Point2f

    The Point2f that is the result of multiplying point by scalar.

    | Improve this Doc View Source

    Subtraction(Point2f, Point2f)

    Subtracts two Point2f structures.

    Declaration
    public static Point2f operator -(Point2f left, Point2f right)
    Parameters
    Type Name Description
    Point2f left

    The Point2f structure on the left of the subtraction operator.

    Point2f right

    The Point2f structure on the right of the subtraction operator.

    Returns
    Type Description
    Point2f

    The Point2f that is the result of subtracting the left and right points.

    | Improve this Doc View Source

    UnaryNegation(Point2f)

    Returns the inversion with respect to the origin of the specified Point2f structure.

    Declaration
    public static Point2f operator -(Point2f point)
    Parameters
    Type Name Description
    Point2f point

    The Point2f structure for which to compute the inversion.

    Returns
    Type Description
    Point2f

    The Point2f that is the result of inverting point with respect to the origin.

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX