libigl v2.5.0
Loading...
Searching...
No Matches
random_dir.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include "random_dir.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

Eigen::Vector3d igl::random_dir ()
 Generate a uniformly random unit direction in 3D, return as vector.
 
Eigen::MatrixXd igl::random_dir_stratified (const int n)
 Generate n stratified uniformly random unit directions in 3d, return as rows of an n by 3 matrix.