gridify edit page

approximate a list of vectors with vectors on a grid

Syntax

[vecG, weightsG, id] = gridify(vec)
[vecG, weightsG, id] = gridify(vec,'weights',weights)

Input

vec vector3d

Output

vGrid S2Grid
weightsG double
id

Options

weights
resolution