From 51b7747e62c189d430318c67368a5c84e50ece61 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sun, 17 Jan 2021 13:33:04 +0100 Subject: Input revamp to make keybindings controlable. --- src/math/surface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math/surface.rs') diff --git a/src/math/surface.rs b/src/math/surface.rs index 088ac47..21c3865 100644 --- a/src/math/surface.rs +++ b/src/math/surface.rs @@ -2,7 +2,7 @@ use super::{LineSegment, Polygon, Rect, Vec2}; use float_cmp::ApproxEq; -use nalgebra::RealField; +use nalgebra::{RealField, Scalar}; /// Trait that describes an area in the vector space on the field of T, with T unable to be /// used without rounding. @@ -28,7 +28,7 @@ where } /// The same as Surface, but the vector space will be assumed to be perfectly divideable or checkable. -pub trait ExactSurface { +pub trait ExactSurface { /// Checks if a point lies on this surface. fn contains_point(&self, point: &Vec2) -> bool; -- cgit v1.2.3-70-g09d2