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

Method transformAngle

source/core/StarMatrix3.hpp:313–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312template <typename T>
313float Matrix3<T>::transformAngle(float angle) const {
314 Vec2 a = Vec2::withAngle(angle, 1.0f);
315 Matrix3 m = *this;
316 m[0][2] = 0;
317 m[1][2] = 0;
318 return m.transformVec2(a).angle();
319}
320
321template <typename T>
322bool Matrix3<T>::operator==(Matrix3 const& m2) const {

Callers 3

loungeAnchorMethod · 0.80
lightSourcesMethod · 0.80
updateMethod · 0.80

Calls 2

transformVec2Method · 0.80
angleMethod · 0.45

Tested by

no test coverage detected