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+by+c=0 clipped in bounding rectangle
|
Field Attributes | Field Name and Description |
---|---|
a in ax+by+c=0
|
|
b in ax+by+c=0
|
|
c in ax+by+c=0
|
|
if the line is completely outside its bounding rectangle
|
|
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
|
|
Normalize receiver values (a,b,c) such that (a,b) is unit vector
|
|
setA(a)
Sets new a of ax+by+c=0
|
|
setABC(a, b, c)
Sets new a of ax+by+c=0
|
|
setB(a)
Sets new a of ax+by+c=0
|
|
setC(a)
Sets new a of ax+by+c=0
|
|
show()
Show the line
|
|
update()
Update receiver
|
Class Detail
LineBR(raphael, a, b, c, lt, rb)
Line given by ax+by+c=0 clipped in bounding rectangle
- Parameters:
- {Raphael} raphael
- raphael instance
- {float} a
- a in ax+by+c=0
- {float} b
- b in ax+by+c=0
- {float} c
- c in ax+by+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+by+c=0
{float}
b
b in ax+by+c=0
{float}
c
c in ax+by+c=0
{bool}
isOutsideBR
if the line is completely outside its bounding rectangle
{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
normalize()
Normalize receiver values (a,b,c) such that (a,b) is unit vector
setA(a)
Sets new a of ax+by+c=0
- Parameters:
- {float} a
- new a in ax+by+c=0
setABC(a, b, c)
Sets new a of ax+by+c=0
- Parameters:
- {float} a
- new a in ax+by+c=0
- b
- c
setB(a)
Sets new a of ax+by+c=0
- Parameters:
- {float} a
- new a in ax+by+c=0
setC(a)
Sets new a of ax+by+c=0
- Parameters:
- {float} a
- new a in ax+by+c=0
show()
Show the line
update()
Update receiver
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 12 2012 09:22:03 GMT+0100 (CET)