Virtual Photonics
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
position
Returns a random position in a cuboid volume (Flat distribution)
Namespace: Vts.MonteCarlo.HelpersAssembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax
Parameters
- center
- Type: Vts.Common Position
The center coordiantes of the cuboid
- lengthX
- Type:
System Double
The x-length of the cuboid
- lengthY
- Type:
System Double
The y-length of the cuboid
- lengthZ
- Type:
System Double
The z-length of the cuboid
- rng
- Type:
System Random
The random number generator
Return Value
Type: Positionposition
See Also