PtF

Type Alias PtF 

Source
pub type PtF = Point<TPtF>;

Aliased Type§

pub struct PtF {
    pub x: f64,
    pub y: f64,
}

Fields§

§x: f64§y: f64

Implementations§

Source§

impl PtF

Source

pub fn round_signed(&self) -> Point<i32>

Trait Implementations§

Source§

impl From<(i32, i32)> for PtF

Source§

fn from((x, y): (i32, i32)) -> Self

Converts to this type from the input type.
Source§

impl From<(u32, u32)> for PtF

Source§

fn from(x: (u32, u32)) -> Self

Converts to this type from the input type.
Source§

impl From<Point<u32>> for PtF

Source§

fn from(p: PtI) -> Self

Converts to this type from the input type.