SDXFrameWork
0.09
SDXFrameWork
|
複合図形を表すクラス. More...
#include <Shape.h>
Inherits SDX::IShape.
Public Member Functions | |
Complex (IShape *shape) | |
IShape * | Clone (double x, double y) const |
同じ形の図形を作る. More... | |
void | SetPos (double X座標, double Y座標) |
指定座標に移動. More... | |
void | Move (double X移動量, double Y移動量) |
相対座標で移動. More... | |
double | GetX () const |
X座標を取得. More... | |
double | GetY () const |
Y座標を取得. More... | |
double | GetW () const |
幅を取得. More... | |
double | GetH () const |
高さを取得. More... | |
void | MultiZoom (double X倍率, double Y倍率) |
縦横別で拡大率を掛け算する. More... | |
void | Rotate (double 回転する角度) |
回転する. More... | |
void | SetAngle (double 指定角度) |
角度を指定する. More... | |
void | Draw (Color 描画色, int 透過率, Camera *座標変換Camera=nullptr) const |
描画する. More... | |
bool | Hit (const IShape *shape) const |
衝突判定. More... | |
bool | Hit (const Complex *complex) const |
bool | Hit (const Point *point) const |
bool | Hit (const Line *line) const |
bool | Hit (const Rect *rect) const |
bool | Hit (const Circle *circle) const |
void | SetZoom (double X拡大率, double Y拡大率) |
拡大率を設定. More... | |
void | MultiZoom (double 倍率) |
拡大率を掛け算する. More... | |
void | MoveA (double 距離, double 方向) |
極座標で移動. More... | |
double | GetDirect (IShape *比較対象) |
対象との角度を取得. More... | |
double | GetDistance (IShape *比較対象) |
対象との相対座標を取得. More... | |
Public Attributes | |
std::vector< IShape * > | shapes |
Static Protected Member Functions | |
static bool | RectRect (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) |
矩形の交差判定. More... | |
static bool | LineLine (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) |
線分の交差判定. More... | |
static int | PointPoint (double x1, double y1, double x2, double y2) |
二点間の距離を計算. More... | |
Protected Attributes | |
double | zoomX |
double | zoomY |
複合図形を表すクラス.
|
virtual |
同じ形の図形を作る.
Implements SDX::IShape.
|
virtual |
指定座標に移動.
Implements SDX::IShape.
|
virtual |
相対座標で移動.
Implements SDX::IShape.
|
virtual |
X座標を取得.
Implements SDX::IShape.
|
virtual |
Y座標を取得.
Implements SDX::IShape.
|
virtual |
幅を取得.
Implements SDX::IShape.
|
virtual |
高さを取得.
Implements SDX::IShape.
|
virtual |
縦横別で拡大率を掛け算する.
Implements SDX::IShape.
|
virtual |
回転する.
Implements SDX::IShape.
|
virtual |
角度を指定する.
Implements SDX::IShape.
描画する.
Implements SDX::IShape.
|
virtual |
衝突判定.
Implements SDX::IShape.
|
staticprotectedinherited |
矩形の交差判定.
|
staticprotectedinherited |
線分の交差判定.
|
staticprotectedinherited |
二点間の距離を計算.
|
inherited |
拡大率を設定.
|
inherited |
拡大率を掛け算する.
|
inherited |
極座標で移動.
|
inherited |
対象との角度を取得.
|
inherited |
対象との相対座標を取得.