Packageorg.unbland.threed.display.primitive
Classpublic class Cone
InheritanceCone Inheritance DisplayObject3D Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
 Inheritedcolor : RGB
このオブジェクトの色です.
DisplayObject3D
 Inheriteddiffuse : VectorRGB
平行光源に対する反射率です.
DisplayObject3D
 InheriteddoubleSide : Boolean
オブジェクトの両面を描画するか否かです.
DisplayObject3D
 Inheritedposition : Vector3D
このオブジェクトの位置をベクトルで表したものです.
DisplayObject3D
 InheritedrotationX : Number
このオブジェクトの rotationX 値です.
DisplayObject3D
 InheritedrotationY : Number
このオブジェクトの rotationY 値です.
DisplayObject3D
 InheritedrotationZ : Number
このオブジェクトの rotationZ 値です.
DisplayObject3D
 Inheritedscale : Number
このオブジェクトの scale 値です.
DisplayObject3D
 InheritedscaleX : Number
このオブジェクトの scaleX 値です.
DisplayObject3D
 InheritedscaleY : Number
このオブジェクトの scaleY 値です.
DisplayObject3D
 InheritedscaleZ : Number
このオブジェクトの scaleZ 値です.
DisplayObject3D
 InheritedshadingType : String
このオブジェクトに適用するシェーディングの種類です.
DisplayObject3D
 Inheritedsurfaces : Array
平面が格納された配列です.
DisplayObject3D
 Inheritedtexture : BitmapData
このオブジェクトのテクスチャです.
DisplayObject3D
 Inheritedvertices : Array
頂点が格納された配列です.
DisplayObject3D
 Inheritedvisible : Boolean
オブジェクトを描画するか否かです.
DisplayObject3D
 Inheritedx : Number
このオブジェクトの x 値です.
DisplayObject3D
 Inheritedy : Number
このオブジェクトの y 値です.
DisplayObject3D
 Inheritedz : Number
このオブジェクトの z 値です.
DisplayObject3D
Protected Properties
 PropertyDefined by
 Inherited_surfaces : Array
DisplayObject3D
 Inherited_vertices : Array
DisplayObject3D
Public Methods
 MethodDefined by
  
Cone(length:Number, radius:Number, sides:int = 8)
新しい Cone インスタンスを作成します.
Cone
 Inherited
flip():void
このオブジェクトに含まれる平面全てを反転します.
DisplayObject3D
 Inherited
getSurfaceAt(index:int):Surface3D
指定されたインデックス値の平面を返します.
DisplayObject3D
 Inherited
getVertexAt(index:int):Vertex3D
指定されたインデックス値の頂点を返します.
DisplayObject3D
Protected Constants
 ConstantDefined by
 InheritedPI : Number = 3.141592653589793
DisplayObject3D
 InheritedTO_DEGREE : Number = 57.29577951308232
DisplayObject3D
 InheritedTO_RADIAN : Number = 0.017453292519943295
DisplayObject3D
Constructor detail
Cone()constructor
public function Cone(length:Number, radius:Number, sides:int = 8)

新しい Cone インスタンスを作成します.

Parameters
length:Number — コーンの長さです.
 
radius:Number — 底面の半径です.0 以上の数値である必要があります.
 
sides:int (default = 8) — 底面の辺の数です.3 以上の整数である必要があります.

Throws
— 底面の半径が 0 未満の場合.
 
— 底面の辺の数が 3 未満の場合.