class

Crystalg::Geometry::Polygon(T)

Inherits Reference < Object

Constructors

new(points : Array(Point(T)))
Source
new(*points : Point(T))
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
[](i)
Source
area
Source
contain(target : Point(T)) : Containment
Source
convex_cut(line : Line(T))
Source
convex_hull
Source
cur(i)
Source
diameter
Source
is_convex?
Source
nxt(i)
Source
prv(i)
Source
size
Source

Nested types