| Package | pegas.geom |
| Class | public class Line |
| Implements | Geometry |
ax + by = c with fixed real coefficients a, b and c such that a and b are not both zero.
Example :
var l:Line = new Line(10, 20, 5) ;
trace(l) ; // {a:10,b:20,c:5}
| Property | Defined by | ||
|---|---|---|---|
| a : Number
Determinates the a component of the Line.
| Line | ||
| b : Number
Determinates the b component of the Line.
| Line | ||
| c : Number
Determinates the c component of the Line.
| Line | ||
| Method | Defined by | ||
|---|---|---|---|
|
Line(a:Number = 0, b:Number = 0, c:Number = 0)
Creates a new Line object.
| Line | ||
|
clone():*
Returns a shallow copy of this instance.
| Line | ||
|
equals(o:*):Boolean
Compares the specified object with this object for equality.
| Line | ||
|
toObject():Object
Returns the Object representation of this object.
| Line | ||
|
toSource(indent:int = 0):String
Returns the source code string representation of the object.
| Line | ||
|
toString():String
Returns the string representation of the object.
| Line | ||
| a | property |
public var a:NumberDeterminates the a component of the Line.
| b | property |
public var b:NumberDeterminates the b component of the Line.
| c | property |
public var c:NumberDeterminates the c component of the Line.
| Line | () | constructor |
public function Line(a:Number = 0, b:Number = 0, c:Number = 0)Creates a new Line object.
Parametersa:Number (default = 0) — the a component of the Line.
|
|
b:Number (default = 0) — the b component of the Line.
|
|
c:Number (default = 0) — the c component of the Line.
|
| clone | () | method |
public function clone():*Returns a shallow copy of this instance.
Example :
var l1:Line = new Line(10, 20, 30) ; var l2:Line = l1.clone() ;Returns
* — a shallow copy of this instance.
|
| equals | () | method |
public function equals(o:*):BooleanCompares the specified object with this object for equality.
Parameterso:* |
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.
Parametersindent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|