DVec2
|Vec2
Struct
DVec2
The DVec2
struct represents a 2-dimensional vector, typically used for positions and dimensions in the layout system.
Property Name | Type |
---|---|
x | f64 |
y | f64 |
Vec2
Property Name | Type |
---|---|
x | f32 |
y | f32 |
Although struct is DVec2, you should write vec2 in live_design!
Example
#![allow(unused)] fn main() { abs_pos: None, abs_pos: vec2(2.0 ,9.0), }