package { import flash.display.Graphics; public class actionscript_wii_Triangle { private var pointA:actionscript_wii_Point3D; private var pointB:actionscript_wii_Point3D; private var pointC:actionscript_wii_Point3D; private var color:uint; public function actionscript_wii_Triangle(a:actionscript_wii_Point3D, b:actionscript_wii_Point3D, c:actionscript_wii_Point3D, color:uint) { pointA = a; pointB = b; pointC = c; this.color = color; } public function draw(g:Graphics):void { g.beginFill(color, 0.5); g.moveTo(pointA.screenX, pointA.screenY); g.lineTo(pointB.screenX, pointB.screenY); g.lineTo(pointC.screenX, pointC.screenY); g.lineTo(pointA.screenX, pointA.screenY); g.endFill(); } } }