Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
9928e82c
Commit
9928e82c
authored
Jul 14, 1995
by
Ken Martin
Browse files
minor fix
parent
d7f5a38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SbrCam.cc
View file @
9928e82c
...
...
@@ -101,7 +101,20 @@ void lookat(int fd, float vx,float vy,float vz,float px,float py,float pz,
mag
=
sqrt
((
pz
-
vz
)
*
(
pz
-
vz
)
+
(
px
-
vx
)
*
(
px
-
vx
));
if
(
mag
!=
0
)
{
rotate
(
fd
,
(
vz
-
pz
)
/
mag
,
(
px
-
vx
)
/
mag
,
'y'
);
}
else
{
if
(
py
<
vy
)
{
rotate
(
fd
,
1
,
0
,
'y'
);
}
else
{
rotate
(
fd
,
-
1
,
0
,
'y'
);
}
}
translate
(
fd
,
-
vx
,
-
vy
,
-
vz
);
...
...
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