Package org.sunflow.math
Class PerlinVector
- java.lang.Object
-
- org.sunflow.math.PerlinVector
-
public class PerlinVector extends java.lang.Object
Vector versions of the standard noise functions. These are provided to emulate standard renderman calls.This code was adapted mainly from the mrclasses package by Gonzalo Garramuno (http://sourceforge.net/projects/mrclasses/).
-
-
Constructor Summary
Constructors Constructor Description PerlinVector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Vector3
noise(float x)
static Vector3
noise(float x, float y)
static Vector3
noise(float x, float y, float z)
static Vector3
noise(float x, float y, float z, float t)
static Vector3
noise(Point2 p)
static Vector3
noise(Point3 p)
static Vector3
noise(Point3 p, float t)
static Vector3
pnoise(float x, float period)
static Vector3
pnoise(float x, float y, float w, float h)
static Vector3
pnoise(float x, float y, float z, float w, float h, float d)
static Vector3
pnoise(float x, float y, float z, float t, float w, float h, float d, float p)
static Vector3
pnoise(Point2 p, float periodx, float periody)
static Vector3
pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
static Vector3
pnoise(Point3 p, Vector3 period)
static Vector3
snoise(float x)
static Vector3
snoise(float x, float y)
static Vector3
snoise(float x, float y, float z)
static Vector3
snoise(float x, float y, float z, float t)
static Vector3
snoise(Point2 p)
static Vector3
snoise(Point3 p)
static Vector3
snoise(Point3 p, float t)
static Vector3
spnoise(float x, float period)
static Vector3
spnoise(float x, float y, float w, float h)
static Vector3
spnoise(float x, float y, float z, float w, float h, float d)
static Vector3
spnoise(float x, float y, float z, float t, float w, float h, float d, float p)
static Vector3
spnoise(Point2 p, float periodx, float periody)
static Vector3
spnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
static Vector3
spnoise(Point3 p, Vector3 period)
-
-
-
Field Detail
-
P1x
private static final float P1x
- See Also:
- Constant Field Values
-
P1y
private static final float P1y
- See Also:
- Constant Field Values
-
P1z
private static final float P1z
- See Also:
- Constant Field Values
-
P2x
private static final float P2x
- See Also:
- Constant Field Values
-
P2y
private static final float P2y
- See Also:
- Constant Field Values
-
P2z
private static final float P2z
- See Also:
- Constant Field Values
-
P3x
private static final float P3x
- See Also:
- Constant Field Values
-
P3y
private static final float P3y
- See Also:
- Constant Field Values
-
P3z
private static final float P3z
- See Also:
- Constant Field Values
-
-
Method Detail
-
snoise
public static final Vector3 snoise(float x)
-
snoise
public static final Vector3 snoise(float x, float y)
-
snoise
public static final Vector3 snoise(float x, float y, float z)
-
snoise
public static final Vector3 snoise(float x, float y, float z, float t)
-
noise
public static final Vector3 noise(float x)
-
noise
public static final Vector3 noise(float x, float y)
-
noise
public static final Vector3 noise(float x, float y, float z)
-
noise
public static final Vector3 noise(float x, float y, float z, float t)
-
pnoise
public static final Vector3 pnoise(float x, float period)
-
pnoise
public static final Vector3 pnoise(float x, float y, float w, float h)
-
pnoise
public static final Vector3 pnoise(float x, float y, float z, float w, float h, float d)
-
pnoise
public static final Vector3 pnoise(float x, float y, float z, float t, float w, float h, float d, float p)
-
spnoise
public static final Vector3 spnoise(float x, float period)
-
spnoise
public static final Vector3 spnoise(float x, float y, float w, float h)
-
spnoise
public static final Vector3 spnoise(float x, float y, float z, float w, float h, float d)
-
spnoise
public static final Vector3 spnoise(float x, float y, float z, float t, float w, float h, float d, float p)
-
-