use binrw::{BinRead, BinWrite}; use crate::{ field_of::FieldOf, types::{Field, Point, F64, U32}, }; use super::ObjectCore; #[derive(BinRead, BinWrite, Debug)] pub struct Ellipse { pub core: ObjectCore, #[brw(magic(8u32))] // Number of following fields in struct pub clockwise: U32, pub corner_a: FieldOf, pub corner_b: FieldOf, pub start_angle: F64, // Radians pub end_angle: F64, // Radians _unknown_1: [Field; 2], pub open_curve: U32, }