HE_Mesh
6.0.1
|
Public Member Functions | |
WB_RandomSegment (final WB_Coord start, final WB_Coord end) | |
WB_RandomSegment (final WB_Coord start, final WB_Coord end, final long seed) | |
WB_RandomSegment | setSeed (final long seed) |
WB_Point | nextPoint () |
WB_Vector | nextVector () |
void | reset () |
WB_RandomSegment | setOffset (final WB_Coord offset) |
WB_RandomSegment | setOffset (final double x, final double y) |
WB_RandomSegment | setOffset (final double x, final double y, final double z) |
![]() | |
WB_RandomPoint | setOffset (WB_Coord offset) |
WB_RandomPoint | setOffset (double x, double y) |
WB_RandomPoint | setOffset (double x, double y, double z) |
Private Attributes | |
final WB_MTRandom | randomGen |
WB_Vector | offset |
Random generator for vectors uniformly distributed on a halfopen linesegment
start | |
end |
wblut.geom.WB_RandomSegment.WB_RandomSegment | ( | final WB_Coord | start, |
final WB_Coord | end, | ||
final long | seed | ||
) |
start | |
end | |
seed |
WB_Point wblut.geom.WB_RandomSegment.nextPoint | ( | ) |
Get the next random point.
Implements wblut.geom.WB_RandomPoint.
References wblut.math.WB_MTRandom.nextDouble(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
WB_Vector wblut.geom.WB_RandomSegment.nextVector | ( | ) |
Get the next random vector.
Implements wblut.geom.WB_RandomPoint.
References wblut.math.WB_MTRandom.nextDouble(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
void wblut.geom.WB_RandomSegment.reset | ( | ) |
WB_RandomSegment wblut.geom.WB_RandomSegment.setOffset | ( | final WB_Coord | offset | ) |
WB_RandomSegment wblut.geom.WB_RandomSegment.setOffset | ( | final double | x, |
final double | y | ||
) |
References wblut.geom.WB_MutableCoordinate.set().
WB_RandomSegment wblut.geom.WB_RandomSegment.setOffset | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
References wblut.geom.WB_MutableCoordinate.set().
WB_RandomSegment wblut.geom.WB_RandomSegment.setSeed | ( | final long | seed | ) |
Set the seed for the RNG.
seed |
Implements wblut.geom.WB_RandomPoint.
References wblut.math.WB_MTRandom.setSeed().
|
private |
|
private |