chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ceee9
)
shapelib::RectShape: Add a note
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 7 May 2022 10:54:14 +0000
(11:54 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/shapelib.rs
b/src/shapelib.rs
index 4478dd2d636c44a570340c7f24744f0e53b63d11..f378e9c30be44c46c402d499523503351b007e65 100644
(file)
--- a/
src/shapelib.rs
+++ b/
src/shapelib.rs
@@
-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)?;