Multi-purpose 2D Point class. More...
Inherits IPosition.
Public Member Functions | |
| Point2Dd (Point2D pt) | |
| Create a Point2Dd CvbPointD from a Point2D. | |
| Point2Dd (double x, double y) | |
| Create a Vector2D from the x and y component. | |
| Point2Dd (Angle phi, double r) | |
| Create a PointD vector from radial coordinates. Note that the Point2Dd vectors are internally stored in Cartesian coordinates and that extensive use of radial coordinates my be slow. | |
| override bool | Equals (object obj) |
| Compares this point with the given obj . | |
| bool | Equals (Point2Dd rhs) |
| Compares this point with the given rhs one. | |
| override int | GetHashCode () |
| Hash code. | |
| override string | ToString () |
| String conversion. | |
| Point2D | ToPoint2D () |
| Converter a PointD to a Point. | |
Static Public Member Functions | |
| static Point2Dd | operator- (Point2D lhs, Point2Dd rhs) |
| Subtraction operator for PointD structures. | |
| static Point2Dd | operator+ (Point2D lhs, Point2Dd rhs) |
| Addition operator for PointD structures. | |
| static Point2Dd | operator- (Point2Dd lhs, Point2D rhs) |
| Subtraction operator for PointD structures. | |
| static Point2Dd | operator+ (Point2Dd lhs, Point2D rhs) |
| Addition operator for PointD structures. | |
| static Point2Dd | operator- (Point2Dd lhs, Point2Dd rhs) |
| Subtraction operator for PointD structs. | |
| static Point2Dd | operator+ (Point2Dd lhs, Point2Dd rhs) |
| Addition operator for PointD structs. | |
| static bool | operator!= (Point2Dd lhs, Point2Dd rhs) |
| Comparison operator for PointD structs. | |
| static bool | operator== (Point2Dd lhs, Point2Dd rhs) |
| Comparison operator for PointD structs. | |
| static Point2Dd | operator* (Matrix2D lhs, Point2Dd rhs) |
| Multiply a Matrix with a PointD rhs. | |
| static double | operator* (Point2Dd lhs, Point2Dd rhs) |
| Inner product of two PointD vectors. | |
| static Point2Dd | operator* (double lhs, Point2Dd rhs) |
| Multiply a PointD with a number. | |
| static Point2Dd | operator* (AffineMatrix2D m, Point2Dd p) |
| Transform a point using an affine matrix (= coordinate system). | |
| static Point2Dd | operator/ (Point2Dd p, double d) |
| Divide a Point2Dd structure by dividing its X and Y component. | |
Static Public Attributes | |
| static readonly Point2Dd | Empty = new Point2Dd() |
| Empty rhs. | |
| static readonly Point2Dd | UnitVectorX = new Point2Dd(1.0, 0.0) |
| Unit rhs in x direction. | |
| static readonly Point2Dd | UnitVectorY = new Point2Dd(0.0, 1.0) |
| Unit rhs in y direction. | |
Properties | |
| double | X [get, set] |
| x component of the rhs | |
| double | Y [get, set] |
| y component of the rhs | |
| double | this[int row] [get, set] |
| Index access. | |
| double | Length [get, set] |
| length of the vector represented by this PointD object. | |
| Angle | Phi [get, set] |
| Orientation of the vector represented by this PointD object. | |
Multi-purpose 2D Point class.
| Point2Dd | ( | double | x, |
| double | y ) |
Create a Vector2D from the x and y component.
| x | data to initialize with |
| y | data to initialize with |
| override bool Equals | ( | object | obj | ) |
Compares this point with the given obj .
| obj | Object to compare with. |
true if obj is a Point2Dd and the components are equal.| bool Equals | ( | Point2Dd | rhs | ) |
Compares this point with the given rhs one.
| rhs | Point to compare with. |
true if components are equal.| override int GetHashCode | ( | ) |
Hash code.
Comparison operator for PointD structs.
| lhs | left hand side operand |
| rhs | right hand side operand |
true if lhs != rhs, false otherwise.
|
static |
Transform a point using an affine matrix (= coordinate system).
| m | affine matrix to transform with |
| p | point to transform |
Multiply a PointD with a number.
| rhs | rhs to multiply with |
| lhs | lhs to multiply with |
Multiply a Matrix with a PointD rhs.
| lhs | matrix |
| rhs | rhs |
Inner product of two PointD vectors.
| lhs | left hand side vector |
| rhs | right hand side vector |
Addition operator for PointD structures.
| lhs | left hand side operand |
| rhs | right hand side operand |
Addition operator for PointD structures.
| lhs | left hand side operand |
| rhs | right hand side operand |
Addition operator for PointD structs.
| lhs | left hand side operand |
| rhs | right hand side operand |
Subtraction operator for PointD structures.
| lhs | left hand side operand |
| rhs | right hand side operand |
Subtraction operator for PointD structures.
| lhs | left hand side operand |
| rhs | right hand side operand |
Subtraction operator for PointD structs.
| lhs | left hand side operand |
| rhs | right hand side operand |
Divide a Point2Dd structure by dividing its X and Y component.
| p | Point to be divided |
| d | Divisor |
Comparison operator for PointD structs.
| lhs | left hand side operand |
| rhs | right hand side operand |
true if lhs == rhs, false otherwise.| Point2D ToPoint2D | ( | ) |
Converter a PointD to a Point.
| override string ToString | ( | ) |
String conversion.
|
getset |