public class IRand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
defaultSeed |
protected static java.util.Random |
random |
Constructor and Description |
---|
IRand() |
Modifier and Type | Method and Description |
---|---|
static IColor |
clr() |
static IColor |
clr(float alpha) |
static IColor |
clr(float maxRed,
float maxGreen,
float maxBlue) |
static IColor |
clr(float maxRed,
float maxGreen,
float maxBlue,
float alpha) |
static IColor |
clr(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue) |
static IColor |
clr(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float alpha) |
static IColor |
clr(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float minAlpha,
float maxAlpha) |
static IColor |
clr(IColor c,
float maxRed,
float maxGreen,
float maxBlue)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
float maxRed,
float maxGreen,
float maxBlue,
float alpha)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float alpha)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float minAlpha,
float maxAlpha)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
int maxRed,
int maxGreen,
int maxBlue)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
int maxRed,
int maxGreen,
int maxBlue,
int alpha)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int alpha)
add random numbers to each component of color
|
static IColor |
clr(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int minAlpha,
int maxAlpha)
add random numbers to each component of color
|
static IColor |
clr(int alpha) |
static IColor |
clr(int maxRed,
int maxGreen,
int maxBlue) |
static IColor |
clr(int maxRed,
int maxGreen,
int maxBlue,
int alpha) |
static IColor |
clr(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue) |
static IColor |
clr(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int alpha) |
static IColor |
clr(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int minAlpha,
int maxAlpha) |
static IVec |
dir()
random direction in 3D
|
static IVec |
dir(double length) |
static IVec |
dir(IVecI perpendicularAxis) |
static IVec |
dir(IVecI perpendicularAxis,
double length) |
static IVec |
dir(IVecI axis,
double length,
double angleRange) |
static IVec |
dir2()
random direction on XY plane
|
static IVec |
dir2(double length) |
static IVec |
dir2(IVecI axis,
double length,
double angleRange) |
static IVec |
direction() |
static IVec |
direction(double length) |
static IVec |
direction(IVecI perpendicularAxis) |
static IVec |
direction(IVecI perpendicularAxis,
double length) |
static IVec |
direction(IVecI axis,
double length,
double angleRange) |
static IVec |
direction2() |
static IVec |
direction2(double length) |
static IVec |
direction2(IVecI axis,
double length,
double angleRange) |
static double |
get() |
static double |
get(double max) |
static double |
get(double min,
double max) |
static <T> T |
get(java.util.List<T> array)
get one element out of array
|
static <T> T |
get(T[] array)
get one element out of array
|
static IColor |
getColor() |
static IColor |
getColor(float alpha) |
static IColor |
getColor(float maxRed,
float maxGreen,
float maxBlue,
float alpha) |
static IColor |
getColor(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue) |
static IColor |
getColor(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float alpha) |
static IColor |
getColor(float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float minAlpha,
float maxAlpha) |
static IColor |
getColor(IColor c,
float maxRed,
float maxGreen,
float maxBlue,
float alpha)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float alpha)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
float minRed,
float maxRed,
float minGreen,
float maxGreen,
float minBlue,
float maxBlue,
float minAlpha,
float maxAlpha)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
int maxRed,
int maxGreen,
int maxBlue)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
int maxRed,
int maxGreen,
int maxBlue,
int alpha)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int alpha)
add random numbers to each component of color
|
static IColor |
getColor(IColor c,
int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int minAlpha,
int maxAlpha)
add random numbers to each component of color
|
static IColor |
getColor(int alpha) |
static IColor |
getColor(int maxRed,
int maxGreen,
int maxBlue) |
static IColor |
getColor(int maxRed,
int maxGreen,
int maxBlue,
int alpha) |
static IColor |
getColor(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue) |
static IColor |
getColor(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int alpha) |
static IColor |
getColor(int minRed,
int maxRed,
int minGreen,
int maxGreen,
int minBlue,
int maxBlue,
int minAlpha,
int maxAlpha) |
static IVec |
getDirection() |
static IVec |
getDirection(double length) |
static IVec |
getDirection(IVecI perpendicularAxis) |
static IVec |
getDirection(IVecI perpendicularAxis,
double length) |
static IVec |
getDirection(IVecI axis,
double length,
double angleRange) |
static IVec |
getDirection2() |
static IVec |
getDirection2(double length) |
static IVec |
getDirection2(IVecI axis,
double length,
double angleRange) |
static double |
getDouble() |
static double |
getDouble(double max) |
static double |
getDouble(double min,
double max) |
static float |
getf() |
static float |
getf(float max) |
static float |
getf(float min,
float max) |
static float |
getFloat() |
static float |
getFloat(float max) |
static float |
getFloat(float min,
float max) |
static IColor |
getGray() |
static IColor |
getGray(float alpha) |
static IColor |
getGray(float minGray,
float maxGray) |
static IColor |
getGray(float minGray,
float maxGray,
float alpha) |
static IColor |
getGray(float minGray,
float maxGray,
float minAlpha,
float maxAlpha) |
static IColor |
getGray(int alpha) |
static IColor |
getGrayIColor() |
static IColor |
getGrayIColor(float alpha) |
static IColor |
getGrayIColor(float minGray,
float maxGray) |
static IColor |
getGrayIColor(float minGray,
float maxGray,
float alpha) |
static IColor |
getGrayIColor(float minGray,
float maxGray,
float minAlpha,
float maxAlpha) |
static IColor |
getGrayIColor(int alpha) |
static int |
geti()
returns 0 or 1
|
static int |
geti(int max) |
static int |
geti(int min,
int max) |
static IColor |
getIColor(float maxRed,
float maxGreen,
float maxBlue) |
static IColor |
getIColor(IColor c,
float maxRed,
float maxGreen,
float maxBlue)
add random numbers to each component of color
|
static int |
getInt() |
static int |
getInt(int max) |
static int |
getInt(int min,
int max) |
static int |
getInteger() |
static int |
getInteger(int max) |
static int |
getInteger(int min,
int max) |
static boolean |
getPercent(double percent) |
static IVec |
getPoint() |
static IVec |
getPoint(double max) |
static IVec |
getPoint(double min,
double max) |
static IVec |
getPoint(double maxx,
double maxy,
double maxz) |
static IVec |
getPoint(double minx,
double miny,
double maxx,
double maxy) |
static IVec |
getPoint(double minx,
double miny,
double minz,
double maxx,
double maxy,
double maxz) |
static IVec |
getPoint(IVec max) |
static IVec |
getPoint(IVec min,
IVec max) |
static IVec |
getPoint2() |
static IVec |
getPoint2(double max) |
static IVec |
getPoint2(double min,
double max) |
static IVec |
getPoint2(double minx,
double miny,
double maxx,
double maxy) |
static IColor |
gray() |
static IColor |
gray(float alpha) |
static IColor |
gray(float minGray,
float maxGray) |
static IColor |
gray(float minGray,
float maxGray,
float alpha) |
static IColor |
gray(float minGray,
float maxGray,
float minAlpha,
float maxAlpha) |
static IColor |
gray(int alpha) |
static void |
init() |
static void |
init(long seed) |
static void |
initByTime() |
protected static float |
limit1(float value) |
protected static int |
limit255(int value) |
static boolean |
pct(double percent) |
static boolean |
percent(double percent) |
static IVec |
point() |
static IVec |
point(double max) |
static IVec |
point(double min,
double max) |
static IVec |
point(double maxx,
double maxy,
double maxz) |
static IVec |
point(double minx,
double miny,
double maxx,
double maxy) |
static IVec |
point(double minx,
double miny,
double minz,
double maxx,
double maxy,
double maxz) |
static IVec |
point(IVec max) |
static IVec |
point(IVec min,
IVec max) |
static IVec |
point2() |
static IVec |
point2(double max) |
static IVec |
point2(double min,
double max) |
static IVec |
point2(double minx,
double miny,
double maxx,
double maxy) |
static IVec |
pt() |
static IVec |
pt(double max) |
static IVec |
pt(double min,
double max) |
static IVec |
pt(double maxx,
double maxy,
double maxz) |
static IVec |
pt(double minx,
double miny,
double maxx,
double maxy) |
static IVec |
pt(double minx,
double miny,
double minz,
double maxx,
double maxy,
double maxz) |
static IVec |
pt(IVec max) |
static IVec |
pt(IVec min,
IVec max) |
static IVec |
pt2() |
static IVec |
pt2(double max) |
static IVec |
pt2(double min,
double max) |
static IVec |
pt2(double minx,
double miny,
double maxx,
double maxy)
random point on XY plane
|
public static final long defaultSeed
protected static java.util.Random random
public static void init()
public static void init(long seed)
public static void initByTime()
public static double get()
public static double getDouble(double min, double max)
public static double getDouble(double max)
public static double getDouble()
public static double get(double min, double max)
public static double get(double max)
public static float getf()
public static float getf(float min, float max)
public static float getf(float max)
public static float getFloat()
public static float getFloat(float min, float max)
public static float getFloat(float max)
public static int geti(int min, int max)
public static int geti(int max)
public static int geti()
public static int getInt(int min, int max)
public static int getInt(int max)
public static int getInt()
public static int getInteger(int min, int max)
public static int getInteger(int max)
public static int getInteger()
public static <T> T get(T[] array)
public static <T> T get(java.util.List<T> array)
public static IVec pt(double minx, double miny, double minz, double maxx, double maxy, double maxz)
public static IVec pt(double maxx, double maxy, double maxz)
public static IVec pt(double minx, double miny, double maxx, double maxy)
public static IVec pt(double min, double max)
public static IVec pt(double max)
public static IVec pt()
public static IVec point(double minx, double miny, double minz, double maxx, double maxy, double maxz)
public static IVec point(double minx, double miny, double maxx, double maxy)
public static IVec point(double maxx, double maxy, double maxz)
public static IVec point(double min, double max)
public static IVec point(double max)
public static IVec point()
public static IVec getPoint(double minx, double miny, double minz, double maxx, double maxy, double maxz)
public static IVec getPoint(double minx, double miny, double maxx, double maxy)
public static IVec getPoint(double maxx, double maxy, double maxz)
public static IVec getPoint(double min, double max)
public static IVec getPoint(double max)
public static IVec getPoint()
public static IVec pt2(double minx, double miny, double maxx, double maxy)
public static IVec pt2(double min, double max)
public static IVec pt2(double max)
public static IVec pt2()
public static IVec point2(double minx, double miny, double maxx, double maxy)
public static IVec point2(double min, double max)
public static IVec point2(double max)
public static IVec point2()
public static IVec getPoint2(double minx, double miny, double maxx, double maxy)
public static IVec getPoint2(double min, double max)
public static IVec getPoint2(double max)
public static IVec getPoint2()
public static IVec dir()
public static IVec dir(double length)
public static IVec direction()
public static IVec direction(double length)
public static IVec getDirection()
public static IVec getDirection(double length)
public static IVec dir2()
public static IVec dir2(double length)
public static IVec direction2()
public static IVec direction2(double length)
public static IVec getDirection2()
public static IVec getDirection2(double length)
public static boolean getPercent(double percent)
public static boolean percent(double percent)
public static boolean pct(double percent)
public static IColor getColor()
public static IColor clr()
protected static int limit255(int value)
protected static float limit1(float value)
public static IColor getColor(int alpha)
public static IColor clr(int alpha)
public static IColor getColor(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int minAlpha, int maxAlpha)
public static IColor clr(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int minAlpha, int maxAlpha)
public static IColor getColor(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int minAlpha, int maxAlpha)
public static IColor clr(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int minAlpha, int maxAlpha)
public static IColor getColor(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int alpha)
public static IColor clr(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int alpha)
public static IColor getColor(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int alpha)
public static IColor clr(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue, int alpha)
public static IColor getColor(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue)
public static IColor clr(int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue)
public static IColor getColor(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue)
public static IColor clr(IColor c, int minRed, int maxRed, int minGreen, int maxGreen, int minBlue, int maxBlue)
public static IColor getColor(int maxRed, int maxGreen, int maxBlue, int alpha)
public static IColor clr(int maxRed, int maxGreen, int maxBlue, int alpha)
public static IColor getColor(IColor c, int maxRed, int maxGreen, int maxBlue, int alpha)
public static IColor clr(IColor c, int maxRed, int maxGreen, int maxBlue, int alpha)
public static IColor getColor(int maxRed, int maxGreen, int maxBlue)
public static IColor clr(int maxRed, int maxGreen, int maxBlue)
public static IColor getColor(IColor c, int maxRed, int maxGreen, int maxBlue)
public static IColor clr(IColor c, int maxRed, int maxGreen, int maxBlue)
public static IColor getColor(float alpha)
public static IColor clr(float alpha)
public static IColor getColor(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float minAlpha, float maxAlpha)
public static IColor clr(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float minAlpha, float maxAlpha)
public static IColor getColor(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float minAlpha, float maxAlpha)
public static IColor clr(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float minAlpha, float maxAlpha)
public static IColor getColor(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float alpha)
public static IColor clr(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float alpha)
public static IColor getColor(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float alpha)
public static IColor clr(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue, float alpha)
public static IColor getColor(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue)
public static IColor clr(float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue)
public static IColor getColor(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue)
public static IColor clr(IColor c, float minRed, float maxRed, float minGreen, float maxGreen, float minBlue, float maxBlue)
public static IColor getColor(float maxRed, float maxGreen, float maxBlue, float alpha)
public static IColor clr(float maxRed, float maxGreen, float maxBlue, float alpha)
public static IColor getColor(IColor c, float maxRed, float maxGreen, float maxBlue, float alpha)
public static IColor clr(IColor c, float maxRed, float maxGreen, float maxBlue, float alpha)
public static IColor getIColor(float maxRed, float maxGreen, float maxBlue)
public static IColor clr(float maxRed, float maxGreen, float maxBlue)
public static IColor getIColor(IColor c, float maxRed, float maxGreen, float maxBlue)
public static IColor clr(IColor c, float maxRed, float maxGreen, float maxBlue)
public static IColor getGrayIColor()
public static IColor getGray()
public static IColor gray()
public static IColor getGrayIColor(int alpha)
public static IColor getGray(int alpha)
public static IColor gray(int alpha)
public static IColor getGrayIColor(float alpha)
public static IColor getGray(float alpha)
public static IColor gray(float alpha)
public static IColor getGrayIColor(float minGray, float maxGray, float minAlpha, float maxAlpha)
public static IColor getGray(float minGray, float maxGray, float minAlpha, float maxAlpha)
public static IColor gray(float minGray, float maxGray, float minAlpha, float maxAlpha)
public static IColor getGrayIColor(float minGray, float maxGray, float alpha)
public static IColor getGray(float minGray, float maxGray, float alpha)
public static IColor gray(float minGray, float maxGray, float alpha)
public static IColor getGrayIColor(float minGray, float maxGray)
public static IColor getGray(float minGray, float maxGray)
public static IColor gray(float minGray, float maxGray)