Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
typed-geometry
Commits
55f2deea
Commit
55f2deea
authored
Mar 16, 2021
by
Philip Trettner
Browse files
quadric inversion
parent
e208eb52
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/typed-geometry/types/quadric.hh
View file @
55f2deea
...
...
@@ -314,6 +314,22 @@ public:
+
c
;
// + c
}
[[
nodiscard
]]
constexpr
quadric
operator
-
()
const
{
quadric
q
;
q
.
A00
=
-
A00
;
q
.
A11
=
-
A11
;
q
.
A22
=
-
A22
;
q
.
A01
=
-
A01
;
q
.
A02
=
-
A02
;
q
.
A12
=
-
A12
;
q
.
b0
=
-
b0
;
q
.
b1
=
-
b1
;
q
.
b2
=
-
b2
;
q
.
c
=
-
c
;
return
q
;
}
// TODO: fix me
template
<
class
T
>
friend
constexpr
T
distance_sqr
(
pos
<
3
,
T
>
const
&
p
,
quadric
<
3
,
T
>
const
&
q
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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