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

Method scale

source/core/StarPoly.hpp:374–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373template <typename DataType>
374void Polygon<DataType>::scale(Vertex const& s, Vertex const& c) {
375 for (auto& v : m_vertexes)
376 v = vmult((v - c), s) + c;
377}
378
379template <typename DataType>
380void Polygon<DataType>::scale(DataType s, Vertex const& c) {

Callers

nothing calls this directly

Calls 1

vmultFunction · 0.85

Tested by

no test coverage detected