#[derive(PartialEq, Debug, Clone, RustcEncodable, RustcDecodable)] /// The implicit convex hull of a set of points. pub struct ConvexHull
{ points: Vec
} impl
ConvexHull
{ /// Creates a polytope from a set of point. /// /// The set of point as not assumed to form a convex polytope. #[inline] pub fn new(points: Vec
) -> ConvexHull
{ ConvexHull { points: points } } } impl
ConvexHull
{ /// The list of points of this convex polytope. #[inline] pub fn points(&self) -> &[P] { // FIXME: naming: `points` vs. `points`? &self.points[..] } }