Struct ConvexConvexDistanceTest.PseudoRandomNumberGenerator | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ConvexConvexDistanceTest.PseudoRandomNumberGenerator

    KISS Based PRNG (http://www.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf)

    Namespace: Unity.Physics.Tests.Collision.Queries
    Syntax
    public struct PseudoRandomNumberGenerator

    Constructors

    PseudoRandomNumberGenerator(UInt32)

    Declaration
    public PseudoRandomNumberGenerator(uint seed)
    Parameters
    Type Name Description
    System.UInt32 seed

    Methods

    NextFloat()

    Declaration
    public float NextFloat()
    Returns
    Type Description
    System.Single

    NextFloat(Single, Single)

    Declaration
    public float NextFloat(float center, float halfExtent)
    Parameters
    Type Name Description
    System.Single center
    System.Single halfExtent
    Returns
    Type Description
    System.Single

    NextFloat2(Single, Single)

    Declaration
    public float2 NextFloat2(float center = 0F, float halfExtent = 1F)
    Parameters
    Type Name Description
    System.Single center
    System.Single halfExtent
    Returns
    Type Description
    float2

    NextFloat3(Single, Single)

    Declaration
    public float3 NextFloat3(float center = 0F, float halfExtent = 1F)
    Parameters
    Type Name Description
    System.Single center
    System.Single halfExtent
    Returns
    Type Description
    float3

    NextFloat4(Single, Single)

    Declaration
    public float4 NextFloat4(float center = 0F, float halfExtent = 1F)
    Parameters
    Type Name Description
    System.Single center
    System.Single halfExtent
    Returns
    Type Description
    float4

    NextUInt32()

    Declaration
    public uint NextUInt32()
    Returns
    Type Description
    System.UInt32
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023