MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / perimeter

Method perimeter

utilities/olcUTIL_Geometry2D.h:704–707  ·  view source on GitHub ↗

Get perimeter of rectangle

Source from the content-addressed store, hash-verified

702
703 // Get perimeter of rectangle
704 inline constexpr T perimeter() const
705 {
706 return T(2) * (size.x + size.y);
707 }
708
709 // Returns side count: 4
710 inline constexpr size_t side_count() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected