Point2D Structure

CVB.Net Documentation
Multi-purpose 2D Point class

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public struct Point2D : IEquatable<Point2D>

The Point2D type exposes the following members.

Constructors

  NameDescription
Public methodPoint2D(Int32)
Create a new instance of the Point2D structure and initialize both components to the same value.
Public methodPoint2D(Point2D)
Create a Point2D from a Point2D.
Public methodPoint2D(Int32, Int32)
Create a Point2D from the x and y component.
Top
Properties

  NameDescription
Public propertyItem
Index access.
Public propertyLength
Gets the length of the vector represented by this PointD object.
Public propertyX
x component of the rhs
Public propertyY
y component of the rhs
Top
Methods

  NameDescription
Public methodEquals(Object)
Compares this point with the given obj.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Point2D)
Compares this point with the given rhs one.
Public methodGetHashCode
Hash code.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
String conversion.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Addition operator for PointD structures.
Public operatorStatic memberEquality
Comparison operator for PointD structures.
Public operatorStatic memberInequality
Comparison operator for PointD structures.
Public operatorStatic memberMultiply(Int32, Point2D)
Multiply a PointD with a number.
Public operatorStatic memberMultiply(Point2D, Point2D)
Inner product of two PointD structure.
Public operatorStatic memberSubtraction
Subtraction operator for PointD structures.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Empty rhs
Public fieldStatic memberUnitVectorX
Unit rhs in x direction
Public fieldStatic memberUnitVectorY
Unit rhs in y direction
Top
Extension Methods

  NameDescription
Public Extension MethodToPoint
Conversion to System.Drawing.Point.
(Defined by ImageExtensions.)
Public Extension MethodToPointF
Conversion to System.Drawing.PointF.
(Defined by ImageExtensions.)
Top
See Also

Reference