Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cast the second operand of Math.pow to double - SonarQube analysis#766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
yanglbme merged 5 commits intoTheAlgorithms:Developmentfromabhijay94:Development
May 23, 2019
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update src/main/java/com/generation/SimplexNoise.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
  • Loading branch information
@abhijay94@yanglbme
abhijay94 andyanglbme authoredMay 23, 2019
commitc25da3ce974d6120574b83664733044e46741eba
2 changes: 1 addition & 1 deletionsrc/main/java/com/generation/SimplexNoise.java
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -103,7 +103,7 @@ public double getNoise(int x, int y, int z) {
for (int index = 0; index < this.octaves.length; index++) {

double frequency = Math.pow(2, index);
double amplitude = Math.pow(this.persistance, (double)this.octaves.length - index);
double amplitude = Math.pow(this.persistance, (double)this.octaves.length - index);

result += this.octaves[index].noise(x / frequency, y / frequency, z / frequency) * amplitude;
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp