summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/astra/cuda/3d/util3d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/astra/cuda/3d/util3d.h b/include/astra/cuda/3d/util3d.h
index e147e42..9fa254d 100644
--- a/include/astra/cuda/3d/util3d.h
+++ b/include/astra/cuda/3d/util3d.h
@@ -78,6 +78,9 @@ struct Vec3 {
Vec3 operator-() const {
return Vec3(-x, -y, -z);
}
+ Vec3 operator*(double s) {
+ return Vec3(s*x, s*y, s*z);
+ }
double norm() const {
return sqrt(x*x + y*y + z*z);
}