Struct GeneratePoints | Entities | 0.16.0-preview.21
docs.unity.cn
    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
    Unity.Mathematics.float3 center
    Single radius
    NativeArray<Unity.Mathematics.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
    Unity.Mathematics.float3 center
    Single radius
    NativeArray<Unity.Mathematics.float3> points
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    RandomPointsInUnitSphere(NativeArray<float3>)

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

    RandomPositionInsideUnitSphere(UInt32)

    Declaration
    public static float3 RandomPositionInsideUnitSphere(uint seed)
    Parameters
    Type Name Description
    UInt32 seed
    Returns
    Type Description
    Unity.Mathematics.float3
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 30 October 2020