|
Colobot
|
Vector struct and related functions. More...

Classes | |
| struct | Math::Vector |
| 3D (3x1) vector More... | |
Namespaces | |
| Math | |
| Namespace for (new) math code. | |
Functions | |
| bool | Math::VectorsEqual (const Math::Vector &a, const Math::Vector &b, float tolerance=TOLERANCE) |
| Checks if two vectors are equal within given tolerance. More... | |
| Vector | Math::Normalize (const Math::Vector &v) |
| Convenience function for getting normalized vector. More... | |
| float | Math::DotProduct (const Math::Vector &left, const Math::Vector &right) |
| Convenience function for calculating dot product. More... | |
| Vector | Math::CrossProduct (const Math::Vector &left, const Math::Vector &right) |
| Convenience function for calculating cross product. More... | |
| float | Math::Angle (const Math::Vector &a, const Math::Vector &b) |
| Convenience function for calculating angle (in radians) between two vectors. More... | |
| float | Math::Distance (const Math::Vector &a, const Math::Vector &b) |
| Returns the distance between the ends of two vectors. More... | |
| Vector | Math::Clamp (const Vector &vec, const Vector &min, const Vector &max) |
| Clamps the vector vec to range between min and max. More... | |
Vector struct and related functions.