stc
Loading...
Searching...
No Matches
Namespaces | Concepts | Functions
stc::math Namespace Reference

Namespaces

namespace  g2d
 

Concepts

concept  VectorType2D
 
concept  VectorType3D
 
concept  SignedNumber
 

Functions

template<typename T >
square (const T &val)
 

Function Documentation

◆ square()

template<typename T >
T stc::math::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*