module PF::Shape
Defined in:
shape.crClass Method Summary
-
.average_radius(points : Enumerable(Vector2))
calculate length from center for all points, and then get the average
-
.circle(num_points : Int, size = 1.0, jitter = 0.0)
Generate an array of points that form a circle
-
.rotate(points : Enumerable(Vector2), rotation : Float64)
Rotate points by rotation
-
.scale(points : Enumerable(Vector2), amount : Vector2)
Scale points by a certain amount
-
.translate(points : Enumerable(Vector2), translation : Vector2)
Translate points by translation
-
.translate(*points : Vector2, translation : Vector2)
ditto
Class Method Detail
calculate length from center for all points, and then get the average
Generate an array of points that form a circle
Rotate points by rotation
Scale points by a certain amount
Translate points by translation