Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
8033e2da
Commit
8033e2da
authored
Dec 21, 2016
by
Martin Heistermann
Browse files
QuadricT: implement Q+Q and Q*scalar operators for convenience.
parent
f50a138e
Pipeline
#4033
passed with stage
in 41 minutes and 40 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Geometry/QuadricT.hh
View file @
8033e2da
...
@@ -180,6 +180,12 @@ public:
...
@@ -180,6 +180,12 @@ public:
return
*
this
;
return
*
this
;
}
}
QuadricT
<
Scalar
>
operator
+
(
const
QuadricT
<
Scalar
>&
_other
)
const
{
QuadricT
<
Scalar
>
result
=
*
this
;
return
result
+=
_other
;
}
/// multiply by scalar
/// multiply by scalar
QuadricT
<
Scalar
>&
operator
*=
(
Scalar
_s
)
QuadricT
<
Scalar
>&
operator
*=
(
Scalar
_s
)
...
@@ -191,6 +197,11 @@ public:
...
@@ -191,6 +197,11 @@ public:
return
*
this
;
return
*
this
;
}
}
QuadricT
<
Scalar
>
operator
*
(
Scalar
_s
)
const
{
QuadricT
<
Scalar
>
result
=
*
this
;
return
result
*=
_s
;
}
/// multiply 4D vector from right: Q*v
/// multiply 4D vector from right: Q*v
template
<
class
_Vec4
>
template
<
class
_Vec4
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment