Sha256: c8f2b565a8bfd38e8dcb0095b8426a63018a0e0f7caa0f3d98e41ddfec0e1ad7
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
// -*- c++ -*- #pragma once #ifndef __RAYS_POLYLINE_H__ #define __RAYS_POLYLINE_H__ #include <vector> #include <xot/pimpl.h> #include <rays/point.h> #include <rays/bounds.h> namespace Rays { class Polygon; class Polyline { public: typedef std::vector<Point> PointList; typedef PointList::const_iterator const_iterator; Polyline (); Polyline (const Point* points, size_t size, bool loop = false); ~Polyline (); bool expand (Polygon* result, coord width) const; Bounds bounds () const; bool loop () const; size_t size () const; bool empty () const; const_iterator begin () const; const_iterator end () const; const Point& operator [] (size_t index) const; operator bool () const; bool operator ! () const; struct Data; Xot::PSharedImpl<Data> self; };// Polyline }// Rays #endif//EOH
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rays-0.1.14 | include/rays/polyline.h |
rays-0.1.13 | include/rays/polyline.h |