Skip to content

Commit

Permalink
Corrected splitVolume example
Browse files Browse the repository at this point in the history
Perhaps incorrectly copied from the original doc/pdf?
  • Loading branch information
aarondemolder authored Nov 11, 2021
1 parent b77719f commit 2dae5ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/src/splitVolumeSample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ splitVolumeSample (float a, float c, // Opacity and color of original sample

if (a > numeric_limits<float>::min())
{
af = -expm1 (xf \* log1p (-a));
cf = (af / a) \* c;
af = -expm1 (xf * log1p (-a));
cf = (af / a) * c;

ab = -expm1 (xb \* log1p (-a));
cb = (ab / a) \* c;
ab = -expm1 (xb * log1p (-a));
cb = (ab / a) * c;
}
else
{
af = a \* xf;
cf = c \* xf;
af = a * xf;
cf = c * xf;

ab = a \* xb;
cb = c \* xb;
ab = a * xb;
cb = c * xb;
}
}
}
Expand Down

0 comments on commit 2dae5ee

Please sign in to comment.