Trait intersection_detection::PointLike
source · pub trait PointLike<N>: Copy + PartialEq + FromIntoPointLike<[N; 2]>where
N: Float,{
// Required methods
fn x(&self) -> N;
fn y(&self) -> N;
fn with_x(&self, x: N) -> Self;
fn with_y(&self, y: N) -> Self;
fn with_xy(x: N, y: N) -> Self;
}Expand description
A point-like type that can be used to define a coordinate in 2D space.
Required Methods§
fn x(&self) -> N
fn y(&self) -> N
fn with_x(&self, x: N) -> Self
fn with_y(&self, y: N) -> Self
fn with_xy(x: N, y: N) -> Self
Object Safety§
This trait is not object safe.