Class RandomExtensions
Extension methods for
Inheritance
System.Object
RandomExtensions
Namespace: X10D.Numerics
Assembly: X10D.dll
Syntax
public static class RandomExtensions : object
Methods
| Improve this Doc View SourceNextRotation(Random)
Returns a randomly generated rotation as represented by a
Declaration
public static Quaternion NextRotation(this Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random | The |
Returns
Type | Description |
---|---|
Quaternion | A |
NextRotationUniform(Random)
Returns a randomly generated rotation with uniform distribution.
Declaration
public static Quaternion NextRotationUniform(this Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random | The |
Returns
Type | Description |
---|---|
Quaternion | A |
NextUnitVector2(Random)
Returns a
Declaration
public static Vector2 NextUnitVector2(this Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random | The |
Returns
Type | Description |
---|---|
Vector2 | A |
NextUnitVector3(Random)
Returns a
Declaration
public static Vector3 NextUnitVector3(this Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random | The |
Returns
Type | Description |
---|---|
Vector3 | A |