DVec2|Vec2 Struct

DVec2

The DVec2 struct represents a 2-dimensional vector, typically used for positions and dimensions in the layout system.

Property NameType
xf64
yf64

Vec2

Property NameType
xf32
yf32

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),
}