Julkiset jäsenfunktiot |
| Point2D (int X, int Y) |
| Creates a New Point Instance on the Stack.
|
string | ToString (string format) |
| Converts the numeric value of this instance to its equivalent string representation, using the specified format.
|
override string | ToString () |
override int | GetHashCode () |
| Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. The standard implementation is a simple XOR operation between all local member variables.
|
override bool | Equals (object obj) |
| Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class.
|
bool | Equals (Point2D other) |
Staattiset julkiset jäsenfunktiot |
static Point2D | Add (Point2D left, Point2D right) |
| Adds 2 Vectors2Ds.
|
static void | Add (ref Point2D left, ref Point2D right, out Point2D result) |
static Point2D | Subtract (Point2D left, Point2D right) |
| Subtracts 2 Points.
|
static void | Subtract (ref Point2D left, ref Point2D right, out Point2D result) |
static Point2D | Multiply (Point2D source, int scalar) |
| Does Scaler Multiplication on a Point.
|
static void | Multiply (ref Point2D source, ref int scalar, out Point2D result) |
static Point2D | Multiply (int scalar, Point2D source) |
static void | Multiply (ref int scalar, ref Point2D source, out Point2D result) |
static Point2D | Negate (Point2D source) |
| Negates a Point.
|
static void | Negate (ref Point2D source) |
static void | Negate (ref Point2D source, out Point2D result) |
static Point2D | Max (Point2D value1, Point2D value2) |
static void | Max (ref Point2D value1, ref Point2D value2, out Point2D result) |
static Point2D | Min (Point2D value1, Point2D value2) |
static void | Min (ref Point2D value1, ref Point2D value2, out Point2D result) |
static Point2D | operator+ (Point2D left, Point2D right) |
| Adds 2 Vectors2Ds.
|
static Point2D | operator- (Point2D left, Point2D right) |
| Subtracts 2 Points.
|
static Point2D | operator* (Point2D source, int scalar) |
| Does Scaler Multiplication on a Point.
|
static Point2D | operator* (int scalar, Point2D source) |
| Does Scaler Multiplication on a Point.
|
static Point2D | operator- (Point2D source) |
| Negates a Point.
|
static bool | operator== (Point2D left, Point2D right) |
| Specifies whether the Points contain the same coordinates.
|
static bool | operator!= (Point2D left, Point2D right) |
| Specifies whether the Points do not contain the same coordinates.
|
static bool | TryParse (string s, out Point2D result) |
static Point2D | Parse (string s) |
static bool | Equals (Point2D left, Point2D right) |
static bool | Equals (ref Point2D left, ref Point2D right) |
Julkiset attribuutit |
const int | Count = 2 |
| The number of int values in the class.
|
const int | Size = sizeof(int) * Count |
| The Size of the class in bytes;.
|
int | X |
| This is the X value. (Usually represents a horizontal position or direction.)
|
int | Y |
| This is the Y value. (Usually represents a vertical position or direction.)
|
Staattiset julkiset attribuutit |
static readonly Point2D | Zero = new Point2D() |
| Point(0,0)
|
This is the Vector Class.