chore: formatting
parent
0c7cbeaa6c
commit
81f32653af
|
@ -41,7 +41,7 @@ Vecf Vecf::move_towards(Vecf const &from, Vecf const &to, float delta) {
|
||||||
|
|
||||||
Vecf Vecf::reflect(Vecf const &in, Vecf const &normal) {
|
Vecf Vecf::reflect(Vecf const &in, Vecf const &normal) {
|
||||||
Vecf const midpoint{normal * Vecf::dot(normal, in)};
|
Vecf const midpoint{normal * Vecf::dot(normal, in)};
|
||||||
return (midpoint - in) + midpoint;
|
return midpoint + (midpoint - in);
|
||||||
}
|
}
|
||||||
|
|
||||||
float Vecf::magnitude() const {
|
float Vecf::magnitude() const {
|
||||||
|
|
Loading…
Reference in New Issue