Click or drag to resize
RandomGeometry Class
A static class of extension methods for generating random vectors of 2, 3, and 4 dimensions and random quaternions with various spatial attributes and constraints.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomGeometry

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomGeometry

The RandomGeometry type exposes the following members.

Methods
  NameDescription
Public methodStatic memberPointWithinBox(IRandom, Bounds)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within an axis aligned box described by the Bounds specified.
Public methodStatic memberPointWithinBox(IRandom, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within an axis aligned box from (0, 0, 0) to size.
Public methodStatic memberPointWithinCircle(IRandom)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a unit circle.
Public methodStatic memberPointWithinCircle(IRandom, Single)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a circle with the specified radius.
Public methodStatic memberPointWithinCircle(IRandom, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a unit circle.
Public methodStatic memberPointWithinCircularShell
Generates a random 2-dimensional vector selected from a uniform distribution of all points within the area of a larger circle with the specified outerRadius minus a smaller circle with the specified innerRadius.
Public methodStatic memberPointWithinCube(IRandom)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a unit cube from (0, 0, 0) to (1, 1, 1).
Public methodStatic memberPointWithinCube(IRandom, Single)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a cube from (0, 0, 0) to (sideLength, sideLength, sideLength).
Public methodStatic memberPointWithinParallelogram(IRandom, Vector2, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a parallelogram with corners at (0, 0), axis0, axis1, and axis0 + axis1.
Public methodStatic memberPointWithinParallelogram(IRandom, Vector3, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a parallelogram with corners at (0, 0, 0), axis0, axis1, and axis0 + axis1.
Public methodStatic memberPointWithinParallelogram(IRandom, Vector2, Vector2, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a parallelogram with corners at root, side0, side1, and an implicit corner opposite from root located at side0 + side1 - root.
Public methodStatic memberPointWithinParallelogram(IRandom, Vector3, Vector3, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a parallelogram with corners at root, side0, side1, and an implicit corner opposite from root located at side0 + side1 - root.
Public methodStatic memberPointWithinRectangle
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a rectangle from (0, 0) to size.
Public methodStatic memberPointWithinRhomboid
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a rhomboid, also know as a parallelepiped, with corners at (0, 0), the sum of any two of the axis parameters, and a far corner at the sum of all three axis parameters.
Public methodStatic memberPointWithinSphere(IRandom)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a unit sphere.
Public methodStatic memberPointWithinSphere(IRandom, Single)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a sphere with the specified radius.
Public methodStatic memberPointWithinSphere(IRandom, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a unit sphere.
Public methodStatic memberPointWithinSphericalShell
Generates a random 3-dimensional vector selected from a uniform distribution of all points within the area of a larger sphere with the specified outerRadius minus a smaller sphere with the specified innerRadius.
Public methodStatic memberPointWithinSquare(IRandom)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a unit square from (0, 0) to (1, 1).
Public methodStatic memberPointWithinSquare(IRandom, Single)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a square from (0, 0) to (sideLength, sideLength).
Public methodStatic memberPointWithinTriangle(IRandom, Vector2, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a triangle with corners at (0, 0), axis0, and axis1.
Public methodStatic memberPointWithinTriangle(IRandom, Vector3, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a triangle with corners at (0, 0, 0), axis0, and axis1.
Public methodStatic memberPointWithinTriangle(IRandom, Vector2, Vector2, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a triangle with corners at point0, point1, and point2.
Public methodStatic memberPointWithinTriangle(IRandom, Vector3, Vector3, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a triangle with corners at point0, point1, and point2.
Public methodStatic memberRotation(IRandom)
Generates a random quaternion, selected from a uniform distribution of all possible 3-dimensional rotations or orientations.
Public methodStatic memberRotation(IRandom, Quaternion)
Generates a random quaternion, selected from a uniform distribution of all possible 3-dimensional rotations or orientations.
Public methodStatic memberScaledVector2
Generates a random 2-dimensional vector selected from a uniform distribution of all points on the perimeter of a circle with the specified radius.
Public methodStatic memberScaledVector3
Generates a random 3-dimensional vector selected from a uniform distribution of all points on the surface of a sphere with the specified radius.
Public methodStatic memberScaledVector4
Generates a random 4-dimensional vector selected from a uniform distribution of all points on the surface of a hypersphere with the specified radius.
Public methodStatic memberUnitVector2(IRandom)
Generates a random 2-dimensional unit vector, selected from a uniform distribution of all points on the perimeter of a unit circle.
Public methodStatic memberUnitVector2(IRandom, Vector2)
Generates a random 2-dimensional unit vector, selected from a uniform distribution of all points on the perimeter of a unit circle.
Public methodStatic memberUnitVector3(IRandom)
Generates a random 3-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit sphere.
Public methodStatic memberUnitVector3(IRandom, Vector3)
Generates a random 3-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit sphere.
Public methodStatic memberUnitVector4(IRandom)
Generates a random 4-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit hypersphere.
Public methodStatic memberUnitVector4(IRandom, Vector4)
Generates a random 4-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit hypersphere.
Top
See Also