implicit aligment conversion
This commit is contained in:
parent
bb85af197c
commit
23b8c8f107
1 changed files with 8 additions and 0 deletions
|
|
@ -265,6 +265,14 @@ namespace Crafter {
|
||||||
this->v[i] /= b;
|
this->v[i] /= b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
template <std::uint32_t BAlignment>
|
||||||
|
operator Vector<T, Len, BAlignment>() const {
|
||||||
|
Vector<T, Len, BAlignment> returnVector;
|
||||||
|
for(std::uint32_t i = 0; i < Len; i++) {
|
||||||
|
returnVector->v[i] = this->v[i];
|
||||||
|
}
|
||||||
|
return returnVector;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr void Normalize() {
|
constexpr void Normalize() {
|
||||||
float fLength = Length();
|
float fLength = Length();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue