pub struct Vec2 {
pub x: f64,
pub y: f64,
}Expand description
A raw, un-normalized 2D vector (x, y).
x is the longitude/horizontal component, y the latitude/vertical
component. Supports component-wise + / - (with another Vec2) and
scalar multiplication.
Fields§
§x: f64Horizontal (longitude) component.
y: f64Vertical (latitude) component.
Implementations§
Trait Implementations§
impl Copy for Vec2
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl Freeze for Vec2
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnsafeUnpin for Vec2
impl UnwindSafe for Vec2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more