Jypeli 4
The simple game programming library
Julkiset jäsenfunktiot | Staattiset julkiset jäsenfunktiot | Julkiset attribuutit | Staattiset julkiset attribuutit
Point2D tietuereferenssi

This is the Vector Class. Lisää...

Lista kaikista jäsenistä.

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)

Yksityiskohtainen selite

This is the Vector Class.


Rakentajien & purkajien dokumentaatio

Point2D ( int  X,
int  Y 
) [inline]

Creates a New Point Instance on the Stack.

Parametrit:
XThe X value.
YThe Y value.

Jäsenfunktioiden dokumentaatio

static Point2D Add ( Point2D  left,
Point2D  right 
) [inline, static]

Adds 2 Vectors2Ds.

Parametrit:
leftThe left Point operand.
rightThe right Point operand.
Palauttaa:
The Sum of the 2 Points.
override bool Equals ( object  obj) [inline]

Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class.

Parametrit:
obj
Palauttaa:
override int GetHashCode ( ) [inline]

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.

Palauttaa:
static Point2D Multiply ( Point2D  source,
int  scalar 
) [inline, static]

Does Scaler Multiplication on a Point.

Parametrit:
scalarThe scalar value that will multiply the Point.
sourceThe Point to be multiplied.
Palauttaa:
The Product of the Scaler Multiplication.
static Point2D Negate ( Point2D  source) [inline, static]

Negates a Point.

Parametrit:
sourceThe Point to be Negated.
Palauttaa:
The Negated Point.
static bool operator!= ( Point2D  left,
Point2D  right 
) [inline, static]

Specifies whether the Points do not contain the same coordinates.

Parametrit:
leftThe left Point to test.
rightThe right Point to test.
Palauttaa:
true if the Points do not have the same coordinates; otherwise false
static Point2D operator* ( Point2D  source,
int  scalar 
) [inline, static]

Does Scaler Multiplication on a Point.

Parametrit:
sourceThe Point to be multiplied.
scalarThe scalar value that will multiply the Point.
Palauttaa:
The Product of the Scaler Multiplication.
static Point2D operator* ( int  scalar,
Point2D  source 
) [inline, static]

Does Scaler Multiplication on a Point.

Parametrit:
scalarThe scalar value that will multiply the Point.
sourceThe Point to be multiplied.
Palauttaa:
The Product of the Scaler Multiplication.
static Point2D operator+ ( Point2D  left,
Point2D  right 
) [inline, static]

Adds 2 Vectors2Ds.

Parametrit:
leftThe left Point operand.
rightThe right Point operand.
Palauttaa:
The Sum of the 2 Points.
static Point2D operator- ( Point2D  left,
Point2D  right 
) [inline, static]

Subtracts 2 Points.

Parametrit:
leftThe left Point operand.
rightThe right Point operand.
Palauttaa:
The Difference of the 2 Points.
static Point2D operator- ( Point2D  source) [inline, static]

Negates a Point.

Parametrit:
sourceThe Point to be Negated.
Palauttaa:
The Negated Point.
static bool operator== ( Point2D  left,
Point2D  right 
) [inline, static]

Specifies whether the Points contain the same coordinates.

Parametrit:
leftThe left Point to test.
rightThe right Point to test.
Palauttaa:
true if the Points have the same coordinates; otherwise false
static Point2D Subtract ( Point2D  left,
Point2D  right 
) [inline, static]

Subtracts 2 Points.

Parametrit:
leftThe left Point operand.
rightThe right Point operand.
Palauttaa:
The Difference of the 2 Points.
string ToString ( string  format) [inline]

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

Parametrit:
formatthe format for each scaler in this Vector
Palauttaa:

Jäsendatan dokumentaatio

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.)

readonly Point2D Zero = new Point2D() [static]

Point(0,0)


Dokumentaatio tälle tietueelle luotiin seuraavasta tiedostosta:
 Kaikki Luokat Nimiavaruudet Funktiot Muuttujat Luettelotyypit Ominaisuudet Tapahtumat