[−][src]Type Definition nalgebra::geometry::Point2
type Point2<N> = Point<N, U2>;
A statically sized 2-dimensional column point.
Because this is an alias, not all its methods are listed here. See the Point
type too.
Implementations
impl<N: Scalar> Point2<N>
[src]
pub fn new(x: N, y: N) -> Self
[src]
Initializes this point from its components.
Example
let p = Point2::new(1.0, 2.0); assert!(p.x == 1.0 && p.y == 2.0);