Paracetamol56 / Aminophenol-Game-engine

3D game engine written in C++17 with the Vulkan API
Apache License 2.0
0 stars 0 forks source link

Implement the `Matrix3<T>` creation for translation, rotation and scale #3

Closed Paracetamol56 closed 1 year ago

Paracetamol56 commented 1 year ago

3 static functions to implement in the Matrix3<T> class.

Paracetamol56 commented 1 year ago

2D and 3D tranformation supported for Matrix3:

static const Matrix3<T> translation(Vector2<T> translation);

static const Matrix3<T> translation(Vector3<T> translation);

static const Matrix3<T> rotation(T rotation);

static const Matrix3<T> rotation(Quaternion<T> rotation);

static const Matrix3<T> scale(Vector2<T> scale);

static const Matrix3<T> scale(Vector3<T> scale);