Browse Source

Fixed typos (substract -> subtract).

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
129b7f23a7
  1. 2
      doc/building.dox
  2. 4
      src/Math/Test/VectorTest.cpp
  3. 2
      src/Math/Test/VectorTest.h
  4. 4
      src/Math/Vector.h
  5. 2
      src/Physics/ShapeGroup.h

2
doc/building.dox

@ -15,7 +15,7 @@ Minimal set of tools and libraries required for building is:
which are tested to support everything needed: **GCC** >= 4.6 and **Clang**
>= 3.1.
- **CMake** >= 2.8.8 (needed for `OBJECT` library target)
- **OpenGL** headers, on Linux most probably shipped with Mesa or
- **OpenGL** headers, on Linux most probably shipped with Mesa, or
**OpenGL ES 2** headers, if targeting OpenGL ES (see below).
- **GLEW** - OpenGL extension wrangler
- **Corrade** - Plugin management and utility library. You can get it at

4
src/Math/Test/VectorTest.cpp

@ -36,7 +36,7 @@ VectorTest::VectorTest() {
&VectorTest::copy,
&VectorTest::dot,
&VectorTest::multiplyDivide,
&VectorTest::addSubstract,
&VectorTest::addSubtract,
&VectorTest::dotSelf,
&VectorTest::length,
&VectorTest::normalized,
@ -103,7 +103,7 @@ void VectorTest::multiplyDivide() {
CORRADE_COMPARE(multipliedChar/-1.5f, vecChar);
}
void VectorTest::addSubstract() {
void VectorTest::addSubtract() {
Vector4 a(0.5f, -7.5f, 9.0f, -11.0f);
Vector4 b(-0.5, 1.0f, 0.0f, 7.5f);
Vector4 expected(0.0f, -6.5f, 9.0f, -3.5f);

2
src/Math/Test/VectorTest.h

@ -28,7 +28,7 @@ class VectorTest: public Corrade::TestSuite::Tester<VectorTest> {
void copy();
void dot();
void multiplyDivide();
void addSubstract();
void addSubtract();
void dotSelf();
void length();
void normalized();

4
src/Math/Vector.h

@ -218,13 +218,13 @@ template<size_t size, class T> class Vector {
return *this;
}
/** @brief Substract two vectors */
/** @brief Subtract two vectors */
inline Vector<size, T> operator-(const Vector<size, T>& other) const {
return Vector<size, T>(*this)-=other;
}
/**
* @brief Substract and assign vector
* @brief Subtract and assign vector
*
* More efficient than operator-(), because it does the computation
* in-place.

2
src/Physics/ShapeGroup.h

@ -31,7 +31,7 @@ namespace Magnum { namespace Physics {
/**
@brief Collider group with defined set operation
Result of union, intersection, substraction or XOR of two collider objects.
Result of union, intersection, subtraction or XOR of two collider objects.
See @ref collision-detection for brief introduction.
*/
class PHYSICS_EXPORT ShapeGroup: public AbstractShape {

Loading…
Cancel
Save