Panda3D
Loading...
Searching...
No Matches
stackedPerlinNoise3.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file stackedPerlinNoise3.I
10 * @author drose
11 * @date 2005-10-05
12 */
13
14/**
15 * Creates a StackedPerlinNoise3 object with no levels. You should call
16 * add_level() to add each level by hand.
17 */
21
22/**
23 * Returns the noise function of the three inputs.
24 */
26noise(double x, double y, double z) {
27 return noise(LVecBase3d(x, y, z));
28}
29
30/**
31 * Returns the noise function of the three inputs.
32 */
34noise(const LVecBase3f &value) {
35 return (float)noise(value[0], value[1], value[2]);
36}
37
38/**
39 * Returns the noise function of the three inputs.
40 */
42operator ()(double x, double y, double z) {
43 return noise(x, y, z);
44}
45
46/**
47 * Returns the noise function of the three inputs.
48 */
50operator ()(const LVecBase3f &value) {
51 return noise(value);
52}
53
54/**
55 * Returns the noise function of the three inputs.
56 */
58operator ()(const LVecBase3d &value) {
59 return noise(value);
60}
double operator()(double x, double y, double z)
Returns the noise function of the three inputs.
StackedPerlinNoise3()
Creates a StackedPerlinNoise3 object with no levels.
double noise(double x, double y, double z)
Returns the noise function of the three inputs.