From cce4b07193393b5ac442d85cabba36c0e93a49c0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 7 May 2022 11:54:14 +0100 Subject: [PATCH] shapelib::RectShape: Add a note Signed-off-by: Ian Jackson --- src/shapelib.rs | 1 + 1 file changed, 1 insertion(+) 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)?; -- 2.30.2