chiark / gitweb /
Implement InertPieceTrait for SimpleShape
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Apr 2022 09:50:03 +0000 (10:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Apr 2022 10:01:16 +0000 (11:01 +0100)
commit5d5580b7ea69aa0d3cbb87578c28cc7e9c9d80d8
treea6bf4a354490a0506f22d742e5e1ce621840dfc6
parent8068253c1b16c9601836aeb72bee7ed954075a47
Implement InertPieceTrait for SimpleShape

Right now, this allows simple circles and rectangles to be used as
backs (for occultation).  It will also allow them to be used for dice,
when we have those.

It is not convenient to provide a test for this because occultation
methods must be provided in libraries, and we don't have a test
library.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/pieces.rs