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

Method scale

source/core/StarLine.hpp:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 void scale(VectorType const& s, VectorType const& c = VectorType()) {
118 m_min = vmult(m_min - c, s) + c;
119 m_max = vmult(m_max - c, s) + c;
120 }
121
122 void scale(T s, VectorType const& c = VectorType()) {
123 scale(VectorType::filled(s), c);

Callers

nothing calls this directly

Calls 1

vmultFunction · 0.85

Tested by

no test coverage detected