We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 669f7b5 commit b0eb04fCopy full SHA for b0eb04f
1 file changed
src/renderer/shape.rs
@@ -183,20 +183,6 @@ pub struct Circle {
183
}
184
185
impl Circle {
186
- pub fn from_pixel_coordinate(
187
- center: Coordinate,
188
- radius: f32,
189
- window_dimensions: (f32, f32),
190
- ) -> Self {
191
- let (w, h) = window_dimensions;
192
- let (cx, cy) = center;
193
-
194
- Self {
195
- center: (cx / w, cy / h),
196
- radius: radius / w.min(h),
197
- }
198
199
200
pub fn convert_into_normalized_coordinate(&self, window_dimensions: (f32, f32)) -> Self {
201
let (w, h) = window_dimensions;
202
let (cx, cy) = self.center;
0 commit comments