[][src]Type Definition building_blocks_core::point2::Point2f

type Point2f = PointN<[f32; 2]>;

A 2-dimensional point with scalar type f32.

Implementations

impl Point2f[src]

pub fn round(&self) -> Self[src]

pub fn floor(&self) -> Self[src]

impl Point2f[src]

pub fn as_2i(&self) -> Point2i[src]

pub fn in_pixel(&self) -> Point2i[src]

Trait Implementations

impl Div<PointN<[f32; 2]>> for Point2f[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f32> for Point2f[src]

type Output = Self

The resulting type after applying the / operator.

impl From<PointN<[i32; 2]>> for Point2f[src]

impl NormSquared for Point2f[src]

impl Point for Point2f[src]

type Scalar = f32