Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
pf2d
v0.3.0
PF2d
Bezier
Cubic
Curve
Quad
Circle
Drawable
Line
Matrix
Rect
Shape
Transform
Vec
Vec2
Vec3
Vec4
Viewable
Generated using Crystal 1.14.0
2024-11-26 10:49:47 UTC
struct
PF2d::
Shape(T)
PF2d::Shape(T)
Struct
Value
Object
Overview
A shape is a clockwise winding of
N
points Vec(T)
Defined in:
pf2d/shape.cr
Constructors
.new
(points : Enumerable(PF2d::Vec2(T)))
Instance Method Summary
#points
: Enumerable(Vec2(T))
#points=
(points : Enumerable(Vec2(T)))
Constructor Detail
def self.
new
(points : Enumerable(
PF2d::Vec2
(T)))
#
[
View source
]
Instance Method Detail
def
points
: Enumerable(
Vec2
(T))
#
[
View source
]
def
points=
(points : Enumerable(
Vec2
(T)))
#
[
View source
]