Logo


search API (or start typing anywhere)


Circle

differ.shapes.Circle

A circle collision shape


classextends differ.shapes.Shape
meta: @:keep


   

Members


Properties


radius
radius : Float
The radius of this circle. Set on construction transformedRadius
transformedRadius : Float
The transformed radius of this circle, based on the scale/rotation

Methods


new
new(x:Float, y:Float, radius:Float) : Void

test

test(shape:differ.shapes.Shape, into:differ.data.ShapeCollision) : differ.data.ShapeCollision
Test for collision against a shape.

testCircle

testCircle(circle:differ.shapes.Circle, into:differ.data.ShapeCollision, flip:Bool) : differ.data.ShapeCollision
Test for collision against a circle.

testPolygon

testPolygon(polygon:differ.shapes.Polygon, into:differ.data.ShapeCollision, flip:Bool) : differ.data.ShapeCollision
Test for collision against a polygon.

testRay

testRay(ray:differ.shapes.Ray, into:differ.data.RayCollision) : differ.data.RayCollision
Test for collision against a ray.