A 2D point (X-Y pair) structure.
Although this structure contains operators such as + and -, their performance is suboptimal due to limitations of C#. The PointMath class of Loyc.Utilities.dll contains extension methods such as Add() and Sub() that perform faster on common coordindate types such as int and double.
- Template Parameters
-
- See also
- PointMath, Vector{T}
- Type Constraints
-
T | : | IConvertible | |
T | : | IEquatable<T> | |
|
static | operator Vector< T > (Point< T > p) |
|
static | operator Point< int > (Point< T > p) |
|
static | operator Point< long > (Point< T > p) |
|
static | operator Point< float > (Point< T > p) |
|
static implicit | operator Point< double > (Point< T > p) |
|
static | operator System.Drawing.Point (Point< T > p) |
|
static | operator System.Drawing.PointF (Point< T > p) |
|
static | operator System.Windows.Point (Point< T > p) |
|
static Point< T > | operator+ (Point< T > a, Vector< T > b) |
|
static Point< T > | operator+ (Vector< T > a, Point< T > b) |
|
static Point< T > | operator- (Point< T > a, Vector< T > b) |
|
static Vector< T > | operator- (Point< T > a, Point< T > b) |
|
static Point< T > | operator* (Point< T > p, T factor) |
|
static Point< T > | operator/ (Point< T > p, T factor) |
|
static Point< T > | operator<< (Point< T > p, int amt) |
|
static Point< T > | operator>> (Point< T > p, int amt) |
|
static bool | operator== (Point< T > a, Point< T > b) |
|
static bool | operator!= (Point< T > a, Point< T > b) |
|