mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-10 23:22:33 -04:00
Editor matrix, icons, rotation, impl light
This commit is contained in:
@@ -34,6 +34,7 @@ struct FVector {
|
||||
return x * other.x + y * other.y + z * other.z;
|
||||
}
|
||||
|
||||
|
||||
FVector Cross(const FVector& other) const {
|
||||
return FVector(
|
||||
y * other.z - z * other.y,
|
||||
@@ -42,6 +43,10 @@ struct FVector {
|
||||
);
|
||||
}
|
||||
|
||||
float Magnitude() const {
|
||||
return std::sqrt(x * x + y * y + z * z);
|
||||
}
|
||||
|
||||
FVector Normalize() const {
|
||||
float len = std::sqrt(x * x + y * y + z * z);
|
||||
return FVector(
|
||||
|
||||
Reference in New Issue
Block a user