Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-01-22 14:17:44 +0300
committerJacques Lucke <jacques@blender.org>2021-01-22 14:17:44 +0300
commit7f96e6ed7e95b660ad3aac2140db4e50c8160693 (patch)
treeca5f0c35c78d8fbf77696d636f61a0f5631b687c /source/blender/blenlib/BLI_float2.hh
parentae4a4307557e80dd75d0d9773862a03b74cbe105 (diff)
parent6ac0a3d83c8e5a39bd5356aa0d68e3166bd91e82 (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/blenlib/BLI_float2.hh')
-rw-r--r--source/blender/blenlib/BLI_float2.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float2.hh b/source/blender/blenlib/BLI_float2.hh
index 84dd0e358a2..be52969862d 100644
--- a/source/blender/blenlib/BLI_float2.hh
+++ b/source/blender/blenlib/BLI_float2.hh
@@ -55,6 +55,11 @@ struct float2 {
return &x;
}
+ operator float3() const
+ {
+ return float3(x, y, 0.0f);
+ }
+
float length() const
{
return len_v2(*this);