From 5016abd9718a55e34741a524c017e0ac9c971cb0 Mon Sep 17 00:00:00 2001 From: Hannah Li Date: Thu, 23 Jun 2022 17:03:48 -0400 Subject: [PATCH] Bezier derivative and normal implementation (#679) * added ui for derivative impl * Add derivative computation for bezier-rs library * integrate devivative ui with library * Add implementation for the normal function * Update rustdoc comments * Rename handles and getters, add tangent function * Rename variables, address nits Co-authored-by: Rob Nadal Co-authored-by: Thomas Cheng Co-authored-by: ll2zheng --- bezier-rs/docs/interactive-docs/src/App.vue | 84 +++++++++++++--- .../src/components/BezierDrawing.ts | 64 ++++++------ .../src/components/ExamplePane.vue | 4 +- .../interactive-docs/src/utils/drawing.ts | 55 ++++++----- .../docs/interactive-docs/src/utils/types.ts | 9 +- .../docs/interactive-docs/wasm/src/lib.rs | 20 +++- bezier-rs/lib/src/lib.rs | 98 ++++++++++++++----- 7 files changed, 225 insertions(+), 109 deletions(-) diff --git a/bezier-rs/docs/interactive-docs/src/App.vue b/bezier-rs/docs/interactive-docs/src/App.vue index 11288672..816561fd 100644 --- a/bezier-rs/docs/interactive-docs/src/App.vue +++ b/bezier-rs/docs/interactive-docs/src/App.vue @@ -13,7 +13,7 @@