| 171 | } |
| 172 | |
| 173 | Quaternionf Node::GetRotation(CoordSys coordSys) const |
| 174 | { |
| 175 | switch (coordSys) |
| 176 | { |
| 177 | case CoordSys_Global: |
| 178 | if (!m_derivedUpdated) |
| 179 | UpdateDerived(); |
| 180 | |
| 181 | return m_derivedRotation; |
| 182 | |
| 183 | case CoordSys_Local: |
| 184 | return m_rotation; |
| 185 | } |
| 186 | |
| 187 | NazaraError("Coordinate system out of enum (0x" + String::Number(coordSys, 16) + ')'); |
| 188 | return Quaternionf(); |
| 189 | } |
| 190 | |
| 191 | Vector3f Node::GetScale(CoordSys coordSys) const |
| 192 | { |
no outgoing calls
no test coverage detected