|
Nostalgia
2.1.5
|
整数型の2次元座標を扱うクラス。 More...
Public Member Functions | |
| Point2 (int x, int y) | |
| Nostalgia.Point2クラスの新しいインスタンスを初期化。 More... | |
| Point2 (Point2 p) | |
| Nostalgia.Point2クラスの新しいインスタンスを初期化。 More... | |
| bool | IsInsideRect (int x, int y, int width, int height) |
| 矩形内に入っているかどうか More... | |
Static Public Member Functions | |
| static Point2 | operator+ (Point2 a, Point2 b) |
| Point2同士の加算。 More... | |
| static Point2 | operator- (Point2 a, Point2 b) |
| Point2同士の減算。 More... | |
| static Point2 | operator- (Point2 a) |
| 符号の反転。 More... | |
| static Point2 | operator* (Point2 a, int b) |
| Point2の乗算。 More... | |
| static Point2 | operator* (int a, Point2 b) |
| Point2の乗算。 More... | |
| static Point2 | operator/ (Point2 a, int b) |
| Point2の除算。 More... | |
| static bool | operator== (Point2 a, Point2 b) |
| Point2が等しければtrueを返す。 More... | |
| static bool | operator!= (Point2 a, Point2 b) |
| 等しくなければtrueを返す。 More... | |
| static implicit | operator Point2 (Vector2 v) |
| Vector2からPoint2へ変換。 More... | |
| static implicit | operator Vector2 (Point2 p) |
| Point2からVector2へ変換。 More... | |
Public Attributes | |
| int | x |
| X座標 More... | |
| int | y |
| Y座標 More... | |
Static Public Attributes | |
| static readonly Point2 | zero = new Point2(0, 0) |
| (0,0)のPoint2を取得。 More... | |
Properties | |
| float | sqrMagnitude [get] |
| このPoint2の長さの2乗を返す。 More... | |
| float | magnitude [get] |
| このPoint2の長さを返す。 More... | |
整数型の2次元座標を扱うクラス。
| Point2 | ( | int | x, |
| int | y | ||
| ) |
Nostalgia.Point2クラスの新しいインスタンスを初期化。
| x | X座標 |
| y | Y座標 |
Nostalgia.Point2クラスの新しいインスタンスを初期化。
| p | Point2 |
| bool IsInsideRect | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
矩形内に入っているかどうか
| x | x |
| y | y |
| width | width |
| height | height |
|
static |
|
static |
| int x |
X座標
| int y |
Y座標
|
get |
このPoint2の長さを返す。
長さ。
|
get |
このPoint2の長さの2乗を返す。
長さの2乗。