Packageorg.MARS.util
Classpublic class RenderingUtil

Useful drawing routines



Public Methods
 MethodDefined by
  
drawHash(graphics:Graphics, x:Number, y:Number, rotation:RotationMatrix, hashSize:int = 3, radius:int = 8):void
[static] Draw a hash (circle in the middle of a body)
RenderingUtil
  
drawVector(graphics:Graphics, vector:Vector, x:Number = 0, y:Number = 0, tipSize:Number = 3):void
[static] Draw a given vector
RenderingUtil
Method detail
drawHash()method
public static function drawHash(graphics:Graphics, x:Number, y:Number, rotation:RotationMatrix, hashSize:int = 3, radius:int = 8):void

Draw a hash (circle in the middle of a body)

Parameters
graphics:Graphics
 
x:Number
 
y:Number
 
rotation:RotationMatrix
 
hashSize:int (default = 3)
 
radius:int (default = 8)
drawVector()method 
public static function drawVector(graphics:Graphics, vector:Vector, x:Number = 0, y:Number = 0, tipSize:Number = 3):void

Draw a given vector

Parameters
graphics:Graphics
 
vector:Vector
 
x:Number (default = 0)
 
y:Number (default = 0)
 
tipSize:Number (default = 3)