MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getScale

Method getScale

include/Core/Graphics/Shapes.hpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 template <class T> Transform::UnitVector BaseShape<T>::getScale() const
124 {
125 const sf::Vector2f scale = static_cast<const T&>(*this).shape.getScale();
126 return Transform::UnitVector(scale.x, scale.y, Transform::Units::ScenePixels);
127 }
128
129 template <class T> Transform::UnitVector BaseShape<T>::getOrigin() const
130 {

Callers 3

getXScaleFactorMethod · 0.80
getYScaleFactorMethod · 0.80
copyFromSpriteMethod · 0.80

Calls 1

UnitVectorClass · 0.85

Tested by

no test coverage detected