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
Philip Trettner
typed-geometry
Commits
cd349b55
Commit
cd349b55
authored
Feb 10, 2021
by
Philip Trettner
Browse files
added box ctor
parent
7d5d944d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/typed-geometry/types/objects/box.hh
View file @
cd349b55
...
...
@@ -102,6 +102,7 @@ struct box<2, ScalarT, 3, TraitsT>
constexpr
box
()
=
default
;
constexpr
box
(
pos_t
center
,
mat_t
const
&
half_extents
)
:
center
(
center
),
half_extents
(
half_extents
)
{}
constexpr
box
(
pos_t
center
,
vec_t
half_extent_x
,
vec_t
half_extent_y
)
:
center
(
center
),
half_extents
(
half_extent_x
,
half_extent_y
)
{}
template
<
class
OtherT
,
class
OtherTraitsT
>
explicit
constexpr
box
(
box
<
2
,
OtherT
,
3
,
OtherTraitsT
>
const
&
v
)
:
center
(
v
.
center
),
half_extents
(
v
.
half_extents
)
...
...
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