Multi-purpose 2D Point class
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
The Point2D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Point2D(Int32) |
Create a new instance of the Point2D structure and
initialize both components to the same value.
| |
Point2D(Point2D) |
Create a Point2D from a Point2D.
| |
Point2D(Int32, Int32) |
Create a Point2D from the x and y component.
|
Properties
Name | Description | |
---|---|---|
Item |
Index access.
| |
Length |
Gets the length of the vector represented by this PointD object.
| |
X |
x component of the rhs
| |
Y |
y component of the rhs
|
Methods
Name | Description | |
---|---|---|
Equals(Object) |
Compares this point with the given obj.
(Overrides ValueTypeEquals(Object).) | |
Equals(Point2D) |
Compares this point with the given rhs one.
| |
GetHashCode |
Hash code.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
String conversion.
(Overrides ValueTypeToString.) |
Operators
Name | Description | |
---|---|---|
Addition |
Addition operator for PointD structures.
| |
Equality |
Comparison operator for PointD structures.
| |
Inequality |
Comparison operator for PointD structures.
| |
Multiply(Int32, Point2D) |
Multiply a PointD with a number.
| |
Multiply(Point2D, Point2D) |
Inner product of two PointD structure.
| |
Subtraction |
Subtraction operator for PointD structures.
|
Fields
Name | Description | |
---|---|---|
Empty |
Empty rhs
| |
UnitVectorX |
Unit rhs in x direction
| |
UnitVectorY |
Unit rhs in y direction
|
Extension Methods
Name | Description | |
---|---|---|
ToPoint |
Conversion to System.Drawing.Point.
(Defined by ImageExtensions.) | |
ToPointF |
Conversion to System.Drawing.PointF.
(Defined by ImageExtensions.) |
See Also