Used to create IK bones using images, so handles offset Images, it uses two Canvas elements. One element is used to help size images and the other collates the results. Leaf should probably be more obviously name as tree branch, but like the name now.

Static variables

@:value(false)staticshowBoxes:Bool = false

@:value(false)staticshowCrosses:Bool = false

statictestSurface:CanvasRenderingContext2D

Static methods

staticinlineaddBox(surfaceOut:CanvasRenderingContext2D, left:Int, top:Int, wid:Int, hi:Int):Void

staticinlinequickCross(surface:CanvasRenderingContext2D, p:Point2D):Void

Constructor

@:value({ y_ : 0, x_ : 0 })new(image_:ImageElement, x_:Int = 0, y_:Int = 0)

Variables

beta:Float

read onlycx:Float

read onlycy:Float

read onlyh:Int

read onlyhi:Int

hyp:Float

@:isVarimage:ImageElement

leafAxis:Array<Axis>

leaves:Array<Leaf>

left:Int

name:String

rx:Float

ry:Float

@:isVartheta:Float

top:Int

read onlyw:Int

read onlywid:Int

x:Int

y:Int

Methods

addLeaf(leaf:Leaf, rx_:Int, ry_:Int):Void

@:has_untypedrenderOn(surfaceOut:CanvasRenderingContext2D):Void

rotate(theta_:Float, rx_:Float, ry_:Float):Void

set_theta(theta:Float):Float