public class TriangleShape extends PathShape
mBoundsRect, mPivotX, mPivotY, mRotation, mScaleX, mScaleY, mStdHeight, mStdHeight2, mStdWidth, mStdWidth2, TAG| Constructor and Description |
|---|
TriangleShape()
デフォルトの三角形を生成
|
TriangleShape(float[] pointes)
座標を指定して三角形を生成。
|
TriangleShape(float x0,
float y0,
float x1,
float y1,
float x2,
float y2)
座標を指定して三角形を生成
(x0,y0)-(x1,y1)-(x2,y2)-(x0,y0)を結ぶ三角形を生成する
ここでの値はShape内描画座標系でShapeの描画内容の位置関係を示すだけなので
実際の表示サイズとは異なる。
|
boundsRect, draw, getOutline, getRotation, getScaleX, getScaleY, onResize, setRotationpublic TriangleShape()
public TriangleShape(float[] pointes)
pointes - public TriangleShape(float x0,
float y0,
float x1,
float y1,
float x2,
float y2)
x0 - y0 - x1 - y1 - x2 - y2 -