Fields§
§data: Vec<Vec3>
Implementations§
source§impl Vectors
impl Vectors
pub fn new(data: Vec<Vec3>) -> Self
pub fn len(&self) -> usize
pub fn from_vec_of_arrays(vec: Vec<[fxx; 3]>) -> Vec<Vec3> ⓘ
pub fn to_vec_of_arrays(self) -> Vec<[fxx; 3]> ⓘ
sourcepub fn project_point_to_plane(center: Vec3, normal: Vec3, point: Vec3) -> Vec3
pub fn project_point_to_plane(center: Vec3, normal: Vec3, point: Vec3) -> Vec3
A simple but awesome operation to cheaply ‘flatten’ a point onto a plane.
sourcepub fn get_between(
center: Vec3,
normal: Vec3,
points: Vec<Vec3>,
sample_point: Vec3
) -> Option<(usize, usize)>
pub fn get_between(
center: Vec3,
normal: Vec3,
points: Vec<Vec3>,
sample_point: Vec3
) -> Option<(usize, usize)>
Given a plane defined by a center
and normal
, and points
surrounding the origin of this plane,
Return the indices of the point “before” and “after” a certain sample
point.