Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
arbd
Commits
90e479f5
Commit
90e479f5
authored
1 year ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Add 4-element Vector3 constructor
parent
8e1618d7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Types/Vector3.h
+1
-0
1 addition, 0 deletions
src/Types/Vector3.h
with
1 addition
and
0 deletions
src/Types/Vector3.h
+
1
−
0
View file @
90e479f5
...
...
@@ -23,6 +23,7 @@ public:
HOST
DEVICE
inline
Vector3_t
<
T
>
(
T
s
)
:
x
(
s
),
y
(
s
),
z
(
s
),
w
(
s
)
{}
HOST
DEVICE
inline
Vector3_t
<
T
>
(
const
Vector3_t
<
T
>&
v
)
:
x
(
v
.
x
),
y
(
v
.
y
),
z
(
v
.
z
),
w
(
v
.
w
)
{}
HOST
DEVICE
inline
Vector3_t
<
T
>
(
T
x0
,
T
y0
,
T
z0
)
:
x
(
x0
),
y
(
y0
),
z
(
z0
),
w
(
0
)
{}
HOST
DEVICE
inline
Vector3_t
<
T
>
(
T
x0
,
T
y0
,
T
z0
,
T
w0
)
:
x
(
x0
),
y
(
y0
),
z
(
z0
),
w
(
w0
)
{}
// HOST DEVICE inline Vector3_t<T>(const T* d) : x(d[0]), y(d[1]), z(d[2]), w(0) {}
HOST
DEVICE
inline
Vector3_t
<
T
>
(
const
float4
a
)
:
x
(
a
.
x
),
y
(
a
.
y
),
z
(
a
.
z
),
w
(
a
.
w
)
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment