mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
chore: initial commit
This commit is contained in:
commit
c955dd6531
16 changed files with 18109 additions and 0 deletions
13
tempest/vector/C3Vector.cpp
Normal file
13
tempest/vector/C3Vector.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "tempest/vector/C3Vector.hpp"
|
||||
|
||||
C3Vector& C3Vector::operator*=(float a) {
|
||||
this->x *= a;
|
||||
this->y *= a;
|
||||
this->z *= a;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
float C3Vector::SquaredMag() const {
|
||||
return this->x * this->x + this->y * this->y + this->z * this->z;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue