[ Index ] |
|
Code source de phpMyVisites 2.3 |
[Code source] [Imprimer] [Statistiques]
Is the shape hidden ?
Poids: | 492 lignes (8 kb) |
Inclus ou requis: | 2 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
awPoint:: (7 méthodes):
__construct()
setX()
setY()
setLocation()
getLocation()
getDistance()
move()
awLine:: (10 méthodes):
__construct()
build()
setX()
setY()
setLocation()
getLocation()
getSize()
isPoint()
isVertical()
isHorizontal()
awVector:: (1 méthode):
getAngle()
awPolygon:: (5 méthodes):
set()
append()
get()
count()
all()
__construct($x, $y) X-Ref |
Build a new awpoint param: float $x param: float $y |
setX($x) X-Ref |
Change X value param: float $x |
setY($y) X-Ref |
Change Y value param: float $y |
setLocation($x, $y) X-Ref |
Change point location param: float $x param: float $y |
getLocation() X-Ref |
Get point location param: array Point location |
getDistance(awPoint $p) X-Ref |
Get distance to another point param: awPoint $p A point return: float |
move($x, $y) X-Ref |
Move the point to another location param: Point A Point with the new awlocation |
__construct($p1 = NULL, $p2 = NULL, $type = awLine::SOLID, $thickness = 1) X-Ref |
Build a new awline param: awPoint $p1 First point param: awPoint $p2 Second point param: int $type Style of line (default to solid) param: int $thickness Line thickness (default to 1) |
build($x1, $y1, $x2, $y2) X-Ref |
Build a line from 4 coords param: int $x1 Left position param: int $y1 Top position param: int $x2 Right position param: int $y2 Bottom position |
setX($x1, $x2) X-Ref |
Change X values of the line param: int $x1 Begin value param: int $x2 End value |
setY($y1, $y2) X-Ref |
Change Y values of the line param: int $y1 Begin value param: int $y2 End value |
setLocation($p1, $p2) X-Ref |
Change line location param: awPoint $p1 First point param: awPoint $p2 Second point |
getLocation() X-Ref |
Get line location param: array Line location |
getSize() X-Ref |
Get the line size return: float |
isPoint() X-Ref |
Test if the line can be considered as a point return: bool |
isVertical() X-Ref |
Test if the line is a vertical line return: bool |
isHorizontal() X-Ref |
Test if the line is an horizontal line return: bool |
set($pos, $point) X-Ref |
Set a point in the polygon param: int $pos Point position param: awPoint $point |
append($point) X-Ref |
Add a point at the end of the polygon param: awPoint $point |
get($pos) X-Ref |
Get a point at a position in the polygon param: int $pos Point position return: Point |
count() X-Ref |
Count number of points in the polygon return: int |
all() X-Ref |
Returns all points in the polygon return: array |
setStyle($style) X-Ref |
Change shape style param: int $style Line style |
getStyle() X-Ref |
Return shape style return: int |
setThickness($thickness) X-Ref |
Change shape thickness param: int $thickness Shape thickness in pixels |
getThickness() X-Ref |
Return shape thickness return: int |
hide($hide) X-Ref |
Hide the shape param: bool $hide |
show($shape) X-Ref |
Show the shape param: bool $shape |
isHidden() X-Ref |
Is the line hidden ? return: bool |
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |