diff options
| author | Bastiaan Olij <mux213@gmail.com> | 2018-11-22 22:14:28 +1100 |
|---|---|---|
| committer | Bastiaan Olij <mux213@gmail.com> | 2018-11-22 22:14:28 +1100 |
| commit | d7982cfac3496de12cb41f789973f2d996628236 (patch) | |
| tree | b53d6cb9eef00a2adc8435c69ab7a1a81f373ed4 /include/core | |
| parent | 8ffda12b83f3ba22cb4cfa785f5931c15b6897c0 (diff) | |
| download | redot-cpp-d7982cfac3496de12cb41f789973f2d996628236.tar.gz | |
Redid PR 190 for master now that nativescript 1.1 has been merged
Diffstat (limited to 'include/core')
| -rw-r--r-- | include/core/Vector3.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/Vector3.hpp b/include/core/Vector3.hpp index fa7dcf4..bdfff2b 100644 --- a/include/core/Vector3.hpp +++ b/include/core/Vector3.hpp @@ -7,6 +7,7 @@ namespace godot { +class Basis; struct Vector3 { @@ -79,6 +80,8 @@ struct Vector3 { Vector3 cubic_interpolate(const Vector3& b, const Vector3& pre_a, const Vector3& post_b, const real_t t) const; + Vector3 bounce(const Vector3& p_normal) const; + real_t length() const; real_t length_squared() const; @@ -89,10 +92,15 @@ struct Vector3 { real_t dot(const Vector3& b) const; + real_t angle_to(const Vector3& b) const; + Vector3 floor() const; Vector3 inverse() const; + bool is_normalized() const; + + Basis outer(const Vector3& b) const; |
