Packagepegas.geom
Classpublic class Line
ImplementsGeometry

Defines a linear equation of the form : 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}
  



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
aproperty
public var a:Number

Determinates the a component of the Line.

bproperty 
public var b:Number

Determinates the b component of the Line.

cproperty 
public var c:Number

Determinates the c component of the Line.

Constructor detail
Line()constructor
public function Line(a:Number = 0, b:Number = 0, c:Number = 0)

Creates a new Line object.

Parameters
a: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.
Method detail
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:*):Boolean

Compares the specified object with this object for equality.

Parameters
o:*

Returns
Booleantrue if the the specified object is equal with this object.
toObject()method 
public function toObject():Object

Returns the Object representation of this object.

Returns
Object — the Object representation of 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.