C++ Vector and Matrix Library


I am working on an open source Vector and Matrix Library for C++ and TypeScript. I am calling it FluxionsGTE and FluxionsWebGTE, respectively.

// TypeScript
class Vector3 {
  constructor(public x: number = 0, public y: number = 0, public z: number = 0) { }
}
// C++
template <class T>
class TVector3
{
public:
  T x, y, z;

  TVector3(T x = T(0), T y = T(0), T z = T(0)) { }
};

using Vector3f = TVector3<float>;

Leave a Reply

Your email address will not be published. Required fields are marked *