Struct GeneratePoints | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Struct GeneratePoints

    Namespace: Unity.Mathematics
    Syntax
    public struct GeneratePoints

    Methods

    RandomPointsInSphere(float3, Single, NativeArray<float3>)

    Declaration
    public static void RandomPointsInSphere(float3 center, float radius, NativeArray<float3> points)
    Parameters
    Type Name Description
    float3 center
    Single radius
    NativeArray<float3> points

    RandomPointsInSphere(float3, Single, NativeArray<float3>, JobHandle)

    Declaration
    public static JobHandle RandomPointsInSphere(float3 center, float radius, NativeArray<float3> points, JobHandle inputDeps)
    Parameters
    Type Name Description
    float3 center
    Single radius
    NativeArray<float3> points
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    RandomPointsInUnitSphere(NativeArray<float3>)

    Declaration
    public static void RandomPointsInUnitSphere(NativeArray<float3> points)
    Parameters
    Type Name Description
    NativeArray<float3> points

    RandomPositionInsideUnitSphere(UInt32)

    Declaration
    public static float3 RandomPositionInsideUnitSphere(uint seed)
    Parameters
    Type Name Description
    UInt32 seed
    Returns
    Type Description
    float3
    In This Article
    • Methods
      • RandomPointsInSphere(float3, Single, NativeArray<float3>)
      • RandomPointsInSphere(float3, Single, NativeArray<float3>, JobHandle)
      • RandomPointsInUnitSphere(NativeArray<float3>)
      • RandomPositionInsideUnitSphere(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