﻿RandomGeometry Class  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  PointWithinBox(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.  PointWithinBox(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.  PointWithinCircle(IRandom)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a unit circle.  PointWithinCircle(IRandom, Single)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a circle with the specified radius.  PointWithinCircle(IRandom, Vector2)
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a unit circle.  PointWithinCircularShell
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.  PointWithinCube(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).  PointWithinCube(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).  PointWithinParallelogram(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.  PointWithinParallelogram(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.  PointWithinParallelogram(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.  PointWithinParallelogram(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.  PointWithinRectangle
Generates a random 2-dimensional vector selected from a uniform distribution of all points within a rectangle from (0, 0) to size.  PointWithinRhomboid
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.  PointWithinSphere(IRandom)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a unit sphere.  PointWithinSphere(IRandom, Single)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a sphere with the specified radius.  PointWithinSphere(IRandom, Vector3)
Generates a random 3-dimensional vector selected from a uniform distribution of all points within a unit sphere.  PointWithinSphericalShell
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.  PointWithinSquare(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).  PointWithinSquare(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).  PointWithinTriangle(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.  PointWithinTriangle(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.  PointWithinTriangle(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.  PointWithinTriangle(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.  Rotation(IRandom)
Generates a random quaternion, selected from a uniform distribution of all possible 3-dimensional rotations or orientations.  Rotation(IRandom, Quaternion)
Generates a random quaternion, selected from a uniform distribution of all possible 3-dimensional rotations or orientations.  ScaledVector2
Generates a random 2-dimensional vector selected from a uniform distribution of all points on the perimeter of a circle with the specified radius.  ScaledVector3
Generates a random 3-dimensional vector selected from a uniform distribution of all points on the surface of a sphere with the specified radius.  ScaledVector4
Generates a random 4-dimensional vector selected from a uniform distribution of all points on the surface of a hypersphere with the specified radius.  UnitVector2(IRandom)
Generates a random 2-dimensional unit vector, selected from a uniform distribution of all points on the perimeter of a unit circle.  UnitVector2(IRandom, Vector2)
Generates a random 2-dimensional unit vector, selected from a uniform distribution of all points on the perimeter of a unit circle.  UnitVector3(IRandom)
Generates a random 3-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit sphere.  UnitVector3(IRandom, Vector3)
Generates a random 3-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit sphere.  UnitVector4(IRandom)
Generates a random 4-dimensional unit vector, selected from a uniform distribution of all points on the surface of a unit hypersphere.  UnitVector4(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