Skip to content

Commit

Permalink
use i,j,k when computing ball
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed May 27, 2014
1 parent 7bf6585 commit 9b0d457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stencils.js
Expand Up @@ -25,7 +25,7 @@ function lp(p, radius_) {
for(var i=-radius; i<=radius; ++i) {
for(var j=-radius; j<=radius; ++j) {
for(var k=-radius; k<=radius; ++k) {
if(Math.pow(Math.abs(i), p) + Math.pow(Math.abs(i), p) + Math.pow(Math.abs(i), p) <= rp) {
if(Math.pow(Math.abs(i), p) + Math.pow(Math.abs(j), p) + Math.pow(Math.abs(k), p) <= rp) {
result.push(i);
result.push(j);
result.push(k);
Expand All @@ -37,7 +37,7 @@ function lp(p, radius_) {
}


//Special stencils for
//Special stencils for
var CUBE_STENCIL;
(function() {
var cube = []
Expand Down

0 comments on commit 9b0d457

Please sign in to comment.