From 7a5e2c14439b9d6ecaed7c163ef51d255043e690 Mon Sep 17 00:00:00 2001 From: Andreas Weibye <13300393+Weibye@users.noreply.github.com> Date: Sun, 23 Jan 2022 11:00:55 +0100 Subject: [PATCH] Remove angle as a component --- rfcs/12-primitive-shapes.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rfcs/12-primitive-shapes.md b/rfcs/12-primitive-shapes.md index afba3f65..93c107b3 100644 --- a/rfcs/12-primitive-shapes.md +++ b/rfcs/12-primitive-shapes.md @@ -105,13 +105,6 @@ The complete overview of shapes, their dimensions and their names can be seen in ## Implementation strategy -### Helper Types - -```rust -/// Stores an angle in radians, and supplies builder functions to prevent errors (from_radians, from_degrees) -struct Angle(f32); -``` - ### Traits (REFERENCE ONLY!) **These traits are provided as reference to illustrate how these primitive shape types might be used. The details of implementation and interface should be determined in a separate RFC, PR, or independent prototypes.** @@ -194,7 +187,7 @@ struct RegularPolygon2d { /// Number of faces. faces: u8, /// Clockwise rotation of the polygon about the origin. At zero rotation, a point will always be located at the 12 o'clock position. - orientation: Angle, + orientation: f32, } impl Meshable for RegularPolygon2d {}