pub struct VisionGeometryUtils;Expand description
Pure-Rust helpers mirroring VNGeometryUtils.
Implementations§
Source§impl VisionGeometryUtils
impl VisionGeometryUtils
Sourcepub fn bounding_circle_for_points(
points: &[VisionPoint],
) -> Option<VisionCircle>
pub fn bounding_circle_for_points( points: &[VisionPoint], ) -> Option<VisionCircle>
Compute a bounding circle covering every point.
Sourcepub fn calculate_area(points: &[VisionPoint], oriented: bool) -> Option<f64>
pub fn calculate_area(points: &[VisionPoint], oriented: bool) -> Option<f64>
Compute a polygon area using Green’s theorem.
Sourcepub fn calculate_perimeter(points: &[VisionPoint]) -> Option<f64>
pub fn calculate_perimeter(points: &[VisionPoint]) -> Option<f64>
Compute the closed polygon perimeter.
Auto Trait Implementations§
impl Freeze for VisionGeometryUtils
impl RefUnwindSafe for VisionGeometryUtils
impl Send for VisionGeometryUtils
impl Sync for VisionGeometryUtils
impl Unpin for VisionGeometryUtils
impl UnsafeUnpin for VisionGeometryUtils
impl UnwindSafe for VisionGeometryUtils
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more