MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / boundBox

Method boundBox

source/core/StarPoly.hpp:486–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484
485template <typename DataType>
486auto Polygon<DataType>::boundBox() const -> Rect {
487 auto bounds = Rect::null();
488 for (auto const& v : m_vertexes)
489 bounds.combine(v);
490 return bounds;
491}
492
493template <typename DataType>
494int Polygon<DataType>::windingNumber(Vertex const& p) const {

Callers 3

setCursorMethod · 0.45
generateMethod · 0.45
drawDrawableMethod · 0.45

Calls 1

combineMethod · 0.45

Tested by

no test coverage detected