chiark / gitweb /
shapelib::RectShape: Add a note
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 May 2022 10:54:14 +0000 (11:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 May 2022 18:24:09 +0000 (19:24 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs

index 4478dd2d636c44a570340c7f24744f0e53b63d11..f378e9c30be44c46c402d499523503351b007e65 100644 (file)
@@ -622,6 +622,7 @@ impl OutlineCalculable {
 pub struct RectShape { pub xy: PosC<f64> }
 
 impl RectShape {
+  // Used by code elsewhere eg deck.rs for occultation boundaries etc.
   #[throws(CoordinateOverflow)]
   pub fn rect(&self, centre: Pos) -> RectC<Coord> {
     let offset = (self.xy * 0.5)?;