emel/lazy/math/geometry

Functions

pub fn centroid(points: ZList(ZList(Float))) -> ZList(Float)
pub fn dot_product(x: ZList(Float), y: ZList(Float)) -> Float
pub fn euclidean_distance(
  x: ZList(Float),
  y: ZList(Float),
) -> Float
pub fn magnitude(vector: ZList(Float)) -> Float
pub fn nearest_neighbor(
  point: ZList(Float),
  neighbors: ZList(ZList(Float)),
) -> ZList(Float)
Search Document