123456789101112131415161718192021 |
- 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<Point>,
- pub corner_b: FieldOf<Point>,
- pub start_angle: F64, // Radians
- pub end_angle: F64, // Radians
- _unknown_1: [Field; 2],
- pub open_curve: U32,
- }
|