Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
pf2d
v0.4.5
PF2d
Bezier
Cubic
Curve
Quad
Canvas
Circle
Clip
Drawable
Intercept
Grid
GridArray
GridSlice
Line
LinearGrid
Matrix
Poly
Quad
QuadSpline
Ray
Rect
ThreadedBinaryTree
Node
Transform
Tri
Vec
Vec2
Vec3
Vec4
Viewable
Generated using Crystal 1.16.3
2026-01-19 19:24:09 UTC
struct
PF2d::
Poly(T)
PF2d::Poly(T)
Struct
Value
Object
Overview
A Poly is a clockwise winding of
N
points Vec(T)
Defined in:
pf2d/poly.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
]