From 78cf42470aa6abf53ab4c2fcc7b9dcefd975516f Mon Sep 17 00:00:00 2001 From: Null Date: Wed, 27 Dec 2023 09:59:38 -0500 Subject: [PATCH] Add direction to palm --- src/palm.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/palm.rs b/src/palm.rs index 2df54af..995631a 100644 --- a/src/palm.rs +++ b/src/palm.rs @@ -28,4 +28,8 @@ impl<'a> Palm<'a> { pub fn orientation(&self) -> Quaternion { self.handle.orientation.into() } + + pub fn direction(&self) -> LeapVector { + self.handle.direction.into() + } }