diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-23 23:30:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-23 23:30:22 +0300 |
commit | f359672c3589c5c474abe1de78fcf39dd59e3532 (patch) | |
tree | bafb3806a8eab57f2def3b28c64e71450d9bec9b /source/blender/blenlib/BLI_float3.hh | |
parent | c049fe7979de5a3a904a6528878df95ade8e358a (diff) |
Particles: spawn particles on mesh surface
Diffstat (limited to 'source/blender/blenlib/BLI_float3.hh')
-rw-r--r-- | source/blender/blenlib/BLI_float3.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float3.hh b/source/blender/blenlib/BLI_float3.hh index b2633985ac7..13ec563578b 100644 --- a/source/blender/blenlib/BLI_float3.hh +++ b/source/blender/blenlib/BLI_float3.hh @@ -143,6 +143,17 @@ struct float3 { return normalize_v3(*this); } + /** + * Normalizes the vector inplace. + */ + void normalize() + { + normalize_v3(*this); + } + + /** + * Returns a normalized vector. The original vector is not changed. + */ float3 normalized() const { float3 result; |