-
- All Implemented Interfaces:
public final class RandomExtensions
-
-
Method Summary
Modifier and Type Method Description final static Point2DnextPoint2D(Random $self)得到随机二维点。包含下限而不包含上限。 final static Point2DnextPoint2D(Random $self, Pair<Double, Double> min, Pair<Double, Double> max)得到指定范围内的随机二维点。包含下限而不包含上限。 final static Point3DnextPoint3D(Random $self)得到指定范围内的随机三维点。包含下限而不包含上限。 final static Point3DnextPoint3D(Random $self, Triple<Double, Double, Double> min, Triple<Double, Double, Double> max)得到指定范围内的随机三维点。包含下限而不包含上限。 final static Rectangle2DnextRectangle2D(Random $self)得到随机矩形。包含下限而不包含上限。 final static Rectangle2DnextRectangle2D(Random $self, Tuple4<Double, Double, Double, Double> min, Tuple4<Double, Double, Double, Double> max)得到指定范围内的随机矩形。包含下限而不包含上限。 final static ColornextColor(Random $self)得到随机颜色。 -
-
Method Detail
-
nextPoint2D
final static Point2D nextPoint2D(Random $self)
得到随机二维点。包含下限而不包含上限。
-
nextPoint2D
final static Point2D nextPoint2D(Random $self, Pair<Double, Double> min, Pair<Double, Double> max)
得到指定范围内的随机二维点。包含下限而不包含上限。
-
nextPoint3D
final static Point3D nextPoint3D(Random $self)
得到指定范围内的随机三维点。包含下限而不包含上限。
-
nextPoint3D
final static Point3D nextPoint3D(Random $self, Triple<Double, Double, Double> min, Triple<Double, Double, Double> max)
得到指定范围内的随机三维点。包含下限而不包含上限。
-
nextRectangle2D
final static Rectangle2D nextRectangle2D(Random $self)
得到随机矩形。包含下限而不包含上限。
-
nextRectangle2D
final static Rectangle2D nextRectangle2D(Random $self, Tuple4<Double, Double, Double, Double> min, Tuple4<Double, Double, Double, Double> max)
得到指定范围内的随机矩形。包含下限而不包含上限。
-
-
-
-