new LineBR(a, b, c, lt, rb)
Line given by ax+by+c=0 clipped in bounding rectangle [Raphael.path]
This:
Parameters:
Name | Type | Description |
---|---|---|
a |
number | a in ax+by+c=0 |
b |
number | b in ax+by+c=0 |
c |
number | c in ax+by+c=0 |
lt |
RaphaelTools.Point2d | left top corner of bounding rectangle |
rb |
RaphaelTools.Point2d | right bottom corner of bounding rectangle (lt.x |
- Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 638
Properties:
Name | Type | Description |
---|---|---|
a |
number | a in ax+by+c=0 |
b |
number | b in ax+by+c=0 |
c |
number | c in ax+by+c=0 |
lt |
Point2d | left top corner of bounding rectangle |
rb |
Point2d | right bottom corner of bounding rectangle (lt.x |
point1 |
Point2d | 1st point of intersection of line with bounding rectangle |
point2 |
Point2d | 2nd point of intersection of line with bounding rectangle |
isOutsideBR |
boolean | if the line is completely outside its bounding rectangle |
Extends
- Raphael.fn
Methods
-
findSections()
-
Finds sections of given line with given bounding rectangle and sets to this.points
- Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 687
-
normalize()
-
Normalize receiver values (a,b,c) such that (a,b) is unit vector
- Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 766
-
setA(a)
-
Sets new a of ax+by+c=0
Parameters:
Name Type Description a
number new a in ax+by+c=0 - Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 664
-
setABC(a)
-
Sets new a of ax+by+c=0
Parameters:
Name Type Description a
number new a in ax+by+c=0 - Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 654
-
setB(b)
-
Sets new a of ax+by+c=0
Parameters:
Name Type Description b
number new a in ax+by+c=0 - Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 672
-
setC(c)
-
Sets new a of ax+by+c=0
Parameters:
Name Type Description c
number new a in ax+by+c=0 - Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 680
-
update()
-
Update receiver
- Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 778