Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
46d9296d
Commit
46d9296d
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix uninitialized var
parent
9bfb769d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Graphics/Camera.h
+7
-7
7 additions, 7 deletions
Graphics/Camera.h
with
7 additions
and
7 deletions
Graphics/Camera.h
+
7
−
7
View file @
46d9296d
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
class
Quaternion
;
class
Quaternion
;
class
XYZ
{
class
XYZ
{
public:
public:
XYZ
(){};
XYZ
()
:
x
(
0.
),
y
(
0.
),
z
(
0.
)
{};
~
XYZ
(){};
~
XYZ
(){};
XYZ
(
double
_x
,
double
_y
,
double
_z
);
XYZ
(
double
_x
,
double
_y
,
double
_z
);
double
x
,
y
,
z
;
double
x
,
y
,
z
;
...
@@ -22,7 +22,7 @@ public:
...
@@ -22,7 +22,7 @@ public:
double
length
(
XYZ
&
p
);
double
length
(
XYZ
&
p
);
void
normalize
(
XYZ
&
p
);
void
normalize
(
XYZ
&
p
);
void
rotate
(
Quaternion
omega
,
XYZ
axe
)
;
void
rotate
(
Quaternion
omega
,
XYZ
axe
)
;
XYZ
operator
*
(
const
double
&
a
,
const
XYZ
&
T
);
XYZ
operator
*
(
const
double
&
a
,
const
XYZ
&
T
);
XYZ
operator
+
(
const
XYZ
&
L
,
const
XYZ
&
R
);
XYZ
operator
+
(
const
XYZ
&
L
,
const
XYZ
&
R
);
XYZ
operator
-
(
const
XYZ
&
L
,
const
XYZ
&
R
);
XYZ
operator
-
(
const
XYZ
&
L
,
const
XYZ
&
R
);
...
@@ -31,9 +31,9 @@ XYZ operator- (const XYZ &R);
...
@@ -31,9 +31,9 @@ XYZ operator- (const XYZ &R);
class
Quaternion
{
class
Quaternion
{
public:
public:
double
x
,
y
,
z
,
w
;
double
x
,
y
,
z
,
w
;
Quaternion
();
Quaternion
();
Quaternion
(
const
XYZ
&
R
);
Quaternion
(
const
XYZ
&
R
);
Quaternion
(
const
XYZ
&
R
,
const
double
&
A
);
Quaternion
(
const
XYZ
&
R
,
const
double
&
A
);
~
Quaternion
();
~
Quaternion
();
};
};
...
@@ -54,7 +54,7 @@ class Camera {
...
@@ -54,7 +54,7 @@ class Camera {
XYZ
right
;
/* View right direction */
XYZ
right
;
/* View right direction */
XYZ
target
;
/* center of rotation and screen */
XYZ
target
;
/* center of rotation and screen */
double
focallength
;
/* Focal Length along vd */
double
focallength
;
/* Focal Length along vd */
double
focallength_ratio
;
double
focallength_ratio
;
double
aperture
;
/* Camera aperture */
double
aperture
;
/* Camera aperture */
double
eyesep
;
/* Eye separation */
double
eyesep
;
/* Eye separation */
int
screenwidth
,
screenheight
;
int
screenwidth
,
screenheight
;
...
@@ -85,7 +85,7 @@ class Camera {
...
@@ -85,7 +85,7 @@ class Camera {
void
upZ
();
void
upZ
();
void
tiltHeadLeft
();
void
tiltHeadLeft
();
void
tiltHeadRight
();
void
tiltHeadRight
();
};
};
class
mouseAndKeyboard
{
class
mouseAndKeyboard
{
public:
public:
...
...
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