クラス Circle
継承元クラス:
Shape.
円形クラス
ファイル: Shape.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Circle()
|
Field Attributes | Field Name and Description |
---|---|
形状タイプ。Shape.TYPE_CIRCLEが設定されている。
|
Method Attributes | Method Name and Description |
---|---|
半径を返す。
|
|
setRadius(radius)
半径を設定する。
|
- Shape から継承したメソッド:
- addVertex, getVertex, getVertexCount
プロパティの詳細
{Number}
type
形状タイプ。Shape.TYPE_CIRCLEが設定されている。
メソッドの詳細
{Number}
getRadius()
半径を返す。
- 戻り値:
- {Number} 半径
setRadius(radius)
半径を設定する。
- パラメータ:
- {Number} radius
- 半径