From 8b8f127f8d59921e6bf5ddc390162da98464026b Mon Sep 17 00:00:00 2001 From: Jack Wrenn Date: Wed, 12 Dec 2018 10:58:00 -0500 Subject: [PATCH] Deprecate `origin` See #371. --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f3cb8c71..1edaa167 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -189,6 +189,12 @@ pub fn zero>() -> T { /// /// * [`one`](fn.one.html) /// * [`zero`](fn.zero.html) +/// +/// # Deprecated +/// Use [Point::origin] instead. +/// +/// Or, use [EuclideanSpace::origin](https://docs.rs/alga/0.7.2/alga/linear/trait.EuclideanSpace.html#tymethod.origin). +#[deprecated(note = "use `Point::origin` instead")] #[inline] pub fn origin() -> P { P::origin()