From: Ian Jackson Date: Sat, 7 May 2022 10:54:14 +0000 (+0100) Subject: shapelib::RectShape: Add a note X-Git-Tag: otter-1.1.0~257 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cce4b07193393b5ac442d85cabba36c0e93a49c0;p=otter.git shapelib::RectShape: Add a note Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index 4478dd2d..f378e9c3 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -622,6 +622,7 @@ impl OutlineCalculable { pub struct RectShape { pub xy: PosC } impl RectShape { + // Used by code elsewhere eg deck.rs for occultation boundaries etc. #[throws(CoordinateOverflow)] pub fn rect(&self, centre: Pos) -> RectC { let offset = (self.xy * 0.5)?;