home *** CD-ROM | disk | FTP | other *** search
- class Pirrest.PhisicsEngine.Graphics
- {
- function Graphics()
- {
- }
- function paintLine($target_mc, $x0, $y0, $x1, $y1)
- {
- $target_mc.moveTo($x0,$y0);
- $target_mc.lineTo($x1,$y1);
- }
- function paintCircle($target_mc, $x, $y, $r)
- {
- var _loc4_ = 0.41421356237309503 * $r;
- var _loc5_ = 0.7071067811865475 * $r;
- $target_mc.moveTo($x + $r,$y);
- $target_mc.curveTo($r + $x,_loc4_ + $y,_loc5_ + $x,_loc5_ + $y);
- $target_mc.curveTo(_loc4_ + $x,$r + $y,$x,$r + $y);
- $target_mc.curveTo(- _loc4_ + $x,$r + $y,- _loc5_ + $x,_loc5_ + $y);
- $target_mc.curveTo(- $r + $x,_loc4_ + $y,- $r + $x,$y);
- $target_mc.curveTo(- $r + $x,- _loc4_ + $y,- _loc5_ + $x,- _loc5_ + $y);
- $target_mc.curveTo(- _loc4_ + $x,- $r + $y,$x,- $r + $y);
- $target_mc.curveTo(_loc4_ + $x,- $r + $y,_loc5_ + $x,- _loc5_ + $y);
- $target_mc.curveTo($r + $x,- _loc4_ + $y,$r + $x,$y);
- }
- }
-