Virtual Photonics
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
position
Returns a random position in a rectangular surface (Gaussian 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 rectangle
- lengthX
- Type:
System Double
The x-coordinate of the lengthX
- lengthY
- Type:
System Double
The y-coordinate of the widthY
- beamDiaFWHM
- Type:
System Double
Beam diameter at FWHM
- rng
- Type:
System Random
The random number generator
Return Value
Type: Positionposition
See Also