pub struct Vector2 {
pub x: f32,
pub y: f32,
}
Expand description
The standard 2D vector type used in Roblox.
See Also
- [
Vector2int16
][struct.Vector2int16.html] - Vector2 on Roblox Developer Hub
Fields§
§x: f32
§y: f32
Implementations§
Trait Implementations§
source§impl PartialEq for Vector2
impl PartialEq for Vector2
impl Copy for Vector2
impl StructuralPartialEq for Vector2
Auto Trait Implementations§
impl RefUnwindSafe for Vector2
impl Send for Vector2
impl Sync for Vector2
impl Unpin for Vector2
impl UnwindSafe for Vector2
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