public final class Vectors extends Object
Modifier and Type | Method and Description |
---|---|
static double[] |
randomVector()
Generate a single randomly-oriented vector on the unit sphere
|
static double[][] |
randomVectors(int nVectors)
Generate an array of randomly-oriented 3D unit vectors
|
static double[][] |
regularVectors(int nVectors)
Generate an array of regularly-spaced 3D unit vectors.
|
public static double[] randomVector()
public static double[][] randomVectors(int nVectors)
nVectors
- number of vectors to generatepublic static double[][] regularVectors(int nVectors)
nVectors
- number of vectors to generateCopyright © 2018–2022 BoneJ. All rights reserved.