struct LavinMQ::AMQP::GISFilter::Polygon

Overview

Represents a polygon as an array of points

Defined in:

lavinmq/amqp/stream/filters/gis.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def bbox : BoundingBox #

[View source]
def contains?(point : Point) : Bool #

Point-in-polygon test using ray casting algorithm https://en.wikipedia.org/wiki/Point_in_polygon


[View source]
def points : Array(Point) #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]