| Package | graphics.geom |
| Class | public class Metaball |
| Inheritance | Metaball Object |
| Implements | Geometry |
| Property | Defined By | ||
|---|---|---|---|
| radius : Number
The radius of the metaball. | Metaball | ||
| x : Number
The x component of the metaball. | Metaball | ||
| y : Number
The y component of the metaball. | Metaball | ||
| Method | Defined By | ||
|---|---|---|---|
Metaball(x:Number = 0, y:Number = 0, radius:Number = 1)
Creates a new Metaball instance. | Metaball | ||
calculate(tx:Number, ty:Number):Number
Calculates the result of the typical equation for a Metaball. | Metaball | ||
clone():*
Returns a shallow copy of this instance. | Metaball | ||
equals(o:*):Boolean
Compares the specified object with this object for equality. | Metaball | ||
toObject():Object
Returns the Object representation of this object. | Metaball | ||
toSource(indent:int = 0):String
Returns the source code string representation of the object. | Metaball | ||
toString():String
Returns the string representation of this instance. | Metaball | ||
| radius | property |
radius:NumberThe radius of the metaball.
public function get radius():Number public function set radius(value:Number):void| x | property |
public var x:NumberThe x component of the metaball.
| y | property |
public var y:NumberThe y component of the metaball.
| Metaball | () | Constructor |
public function Metaball(x:Number = 0, y:Number = 0, radius:Number = 1)
Creates a new Metaball instance.
x:Number (default = 0) | |
y:Number (default = 0) | |
radius:Number (default = 1) |
| calculate | () | method |
public function calculate(tx:Number, ty:Number):NumberCalculates the result of the typical equation for a Metaball.
Parameters
tx:Number | |
ty:Number |
Number |
| 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:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| toObject | () | method |
public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of this instance.
ReturnsString — the string representation of this instance.
|