Class LineBR
represents line given by equation clipped in bounding rectangle
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
LineBR(raphael, a, b, c, lt, rb)
Line given by ax+bz+c=0 clipped in bounding rectangle
|
Field Attributes | Field Name and Description |
---|---|
a in ax+bz+c=0
|
|
b in ax+bz+c=0
|
|
c in ax+bz+c=0
|
|
Line object (see Line)
|
|
left top corner of bounding rectangle
|
|
1st point of intersection of line with bounding rectangle
|
|
2nd point of intersection of line with bounding rectangle
|
|
Raphael instance
|
|
right bottom corner of bounding rectangle (lt.x |
Method Attributes | Method Name and Description |
---|---|
<static> |
LineBR.create(raphael, a, b, c, lt, rb)
Creates new LineBR object, for parameters meaning see LineBR
|
Finds sections of given line with given bounding rectangle and sets to this.points
|
|
hide()
Hide the line
|
|
setA(a)
Sets new a of ax+bz+c=0
|
|
setABC(a, b, c)
Sets new a of ax+bz+c=0
|
|
setB(a)
Sets new a of ax+bz+c=0
|
|
setC(a)
Sets new a of ax+bz+c=0
|
|
up()
Update receiver
|
Class Detail
LineBR(raphael, a, b, c, lt, rb)
Line given by ax+bz+c=0 clipped in bounding rectangle
- Parameters:
- {Raphael} raphael
- raphael instance
- {float} a
- a in ax+bz+c=0
- {float} b
- b in ax+bz+c=0
- {float} c
- c in ax+bz+c=0
- {Point} lt
- left top corner of bounding rectangle
- {Point} rb
- right bottom corner of bounding rectangle (lt.x
Field Detail
{float}
a
a in ax+bz+c=0
{float}
b
b in ax+bz+c=0
{float}
c
c in ax+bz+c=0
{Line}
line
Line object (see Line)
{Point}
lt
left top corner of bounding rectangle
{Point}
point1
1st point of intersection of line with bounding rectangle
{Point}
point2
2nd point of intersection of line with bounding rectangle
{Raphael}
raphael
Raphael instance
{Point}
rb
right bottom corner of bounding rectangle (lt.x
Method Detail
<static>
{LineBR}
LineBR.create(raphael, a, b, c, lt, rb)
Creates new LineBR object, for parameters meaning see LineBR
- Parameters:
- raphael
- a
- b
- c
- lt
- rb
- Returns:
- {LineBR} new LineBR object
findSections()
Finds sections of given line with given bounding rectangle and sets to this.points
hide()
Hide the line
setA(a)
Sets new a of ax+bz+c=0
- Parameters:
- {float} a
- new a in ax+bz+c=0
setABC(a, b, c)
Sets new a of ax+bz+c=0
- Parameters:
- {float} a
- new a in ax+bz+c=0
- b
- c
setB(a)
Sets new a of ax+bz+c=0
- Parameters:
- {float} a
- new a in ax+bz+c=0
setC(a)
Sets new a of ax+bz+c=0
- Parameters:
- {float} a
- new a in ax+bz+c=0
up()
Update receiver
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Oct 23 2011 11:06:07 GMT+0200 (CEST)