MATH: Make Vector3d::length const correct
This commit is contained in:
parent
acee74a4b7
commit
692a2e166e
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ public:
|
||||||
* Calculate vector length
|
* Calculate vector length
|
||||||
* @return The computed length
|
* @return The computed length
|
||||||
*/
|
*/
|
||||||
float length() {
|
float length() const {
|
||||||
return sqrtf(x() * x() + y() * y() + z() * z());
|
return sqrtf(x() * x() + y() * y() + z() * z());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue