mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(vector): add C3Vector constructor for CImVector
This commit is contained in:
parent
ad2fe0f0f0
commit
c6a7e2c771
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef TEMPEST_VECTOR_C_3VECTOR_HPP
|
||||
#define TEMPEST_VECTOR_C_3VECTOR_HPP
|
||||
|
||||
#include "tempest/vector/CImVector.hpp"
|
||||
|
||||
class C44Matrix;
|
||||
|
||||
class C3Vector {
|
||||
|
|
@ -16,6 +18,10 @@ class C3Vector {
|
|||
: x(x)
|
||||
, y(y)
|
||||
, z(z) {};
|
||||
C3Vector(const CImVector& color)
|
||||
: x(color.r / 255.0f)
|
||||
, y(color.g / 255.0f)
|
||||
, z(color.b / 255.0f) {};
|
||||
C3Vector& operator*=(float a);
|
||||
float Mag() const;
|
||||
void Normalize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue