Skip to main content

Vector2D

Type Alias Vector2D 

Source
pub type Vector2D = Vector2D<f64>;
Expand description

A two-dimensional vector with f64 components and unknown units.

§Examples

assert_eq!(cel_euclid::Vector2D::default(), cel_euclid::Vector2D::zero());

Aliased Type§

pub struct Vector2D {
    pub x: f64,
    pub y: f64,
    /* private fields */
}

Fields§

§x: f64

The x (traditionally, horizontal) coordinate.

§y: f64

The y (traditionally, vertical) coordinate.