Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb Ray Tracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engeler
RBComb Ray Tracer
Commits
28150fa5
Commit
28150fa5
authored
3 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
commented out unused variables
parent
e3b8aabf
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
src/dielectric.cpp
+2
-4
2 additions, 4 deletions
src/dielectric.cpp
with
2 additions
and
4 deletions
src/dielectric.cpp
+
2
−
4
View file @
28150fa5
...
@@ -97,14 +97,12 @@ double dielectric::reflectance(double cos_theta_in, double cos_theta_out, double
...
@@ -97,14 +97,12 @@ double dielectric::reflectance(double cos_theta_in, double cos_theta_out, double
*/
*/
//new amplitude reflectance coefficients
//new amplitude reflectance coefficients
double
rs
=
(
ir_in
*
cos_theta_in
-
ir_out
*
cos_theta_out
)
/
(
ir_in
*
cos_theta_in
+
ir_out
*
cos_theta_out
);
double
rs
=
(
ir_in
*
cos_theta_in
-
ir_out
*
cos_theta_out
)
/
(
ir_in
*
cos_theta_in
+
ir_out
*
cos_theta_out
);
double
rp
=
(
ir_out
*
cos_theta_in
-
ir_in
*
cos_theta_out
)
/
(
ir_out
*
cos_theta_in
+
ir_in
*
cos_theta_out
);
//double rp = ( ir_out * cos_theta_in - ir_in * cos_theta_out ) / ( ir_out * cos_theta_in + ir_in * cos_theta_out );
//return 0.5 * (rs + rp);
return
rs
;
return
rs
;
}
}
double
dielectric
::
transmittance
(
double
cos_theta_in
,
double
cos_theta_out
,
double
ir_in
,
double
ir_out
)
const
{
double
dielectric
::
transmittance
(
double
cos_theta_in
,
double
cos_theta_out
,
double
ir_in
,
double
ir_out
)
const
{
double
ts
=
2
*
ir_in
*
cos_theta_in
/
(
ir_in
*
cos_theta_in
+
ir_out
*
cos_theta_out
);
double
ts
=
2
*
ir_in
*
cos_theta_in
/
(
ir_in
*
cos_theta_in
+
ir_out
*
cos_theta_out
);
double
tp
=
2
*
ir_in
*
cos_theta_in
/
(
ir_out
*
cos_theta_in
+
ir_in
*
cos_theta_out
);
//double tp = 2 * ir_in * cos_theta_in / ( ir_out * cos_theta_in + ir_in * cos_theta_out );
//return 0.5 * (ts + tp);
return
ts
;
return
ts
;
}
}
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