Packagegraphics.geom
Classpublic class Ring
InheritanceRing Inheritance Object
Implements Geometry

Defines a flat ring or disk within three dimensional space that is specified via the ring's center point, an up vector, an inner radius, and an outer radius.



Public Properties
 PropertyDefined By
  center : Vector3
The center vector of the ring.
Ring
  innerRadius : Number
The ring's inner radius.
Ring
  outerRadius : Number
The ring's outer radius.
Ring
  up : Vector3
The the unit up vector defining the ring's orientation.
Ring
Public Methods
 MethodDefined By
  
Ring(center:Vector3 = null, up:Vector3 = null, innerRadius:Number = 0, outerRadius:Number = 1)
Creates a new Ring instance.
Ring
  
clone():*
Returns a shallow copy of this instance.
Ring
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
Ring
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
Ring
  
toString():String
Returns the string representation of the object.
Ring
Property Detail
centerproperty
public var center:Vector3

The center vector of the ring.

innerRadiusproperty 
public var innerRadius:Number

The ring's inner radius.

outerRadiusproperty 
public var outerRadius:Number

The ring's outer radius.

upproperty 
public var up:Vector3

The the unit up vector defining the ring's orientation.

Constructor Detail
Ring()Constructor
public function Ring(center:Vector3 = null, up:Vector3 = null, innerRadius:Number = 0, outerRadius:Number = 1)

Creates a new Ring instance.

Parameters
center:Vector3 (default = null) — the center of the ring.
 
up:Vector3 (default = null) — the unit up vector defining the ring's orientation.
 
innerRadius:Number (default = 0) — the ring's inner radius.
 
outerRadius:Number (default = 1) — the ring's outer radius.
Method Detail
clone()method
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of the object.

Returns
String — the string representation of the object.