class Crystalg::Geometry::Polygon(T)

Defined in:

crystalg/geometry/polygon.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Array(Point(T))) #

[View source]
def self.new(*points : Point(T)) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


[View source]
def [](i) #

[View source]
def area #

[View source]
def contain(target : Point(T)) : Containment #

[View source]
def convex_cut(line : Line(T)) #

[View source]
def convex_hull #

[View source]
def cur(i) #

[View source]
def diameter #

[View source]
def is_convex? #

[View source]
def nxt(i) #

[View source]
def prv(i) #

[View source]
def size #

[View source]