# sphericalDistribution()

# Example


# Description

Computes the distance to the nearest of N points distributed over a sphere.

# Syntax

sphericalDistribution(p, numPoints)

# Parameters

p vec3: a point to sample.

numPoints Float: number of points distributed on the sphere.

# Returns

Vec4: x,y,z is the location of the point nearest to p, and w is the distance to that point ( w = distance(xyz,p) )