|
stc
|
Namespaces | |
| namespace | g2d |
Concepts | |
| concept | VectorType2D |
| concept | VectorType3D |
| concept | SignedNumber |
Functions | |
| template<typename T > | |
| T | square (const T &val) |
|
inline |
Utility function for pow(x, 2) that does raw multiplication. Maybe a little bit faster, according to statements I have never fact-checked. Compatible with anything that provides an operator*