Allow clamping vectors and colors
This commit is contained in:
parent
94bc0bd919
commit
2e13e3ed4a
19 changed files with 190 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ struct Vector3 {
|
|||
_FORCE_INLINE_ Vector3 sign() const;
|
||||
_FORCE_INLINE_ Vector3 ceil() const;
|
||||
_FORCE_INLINE_ Vector3 round() const;
|
||||
Vector3 clamp(const Vector3 &p_min, const Vector3 &p_max) const;
|
||||
|
||||
_FORCE_INLINE_ real_t distance_to(const Vector3 &p_to) const;
|
||||
_FORCE_INLINE_ real_t distance_squared_to(const Vector3 &p_to) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue