Skip to content

Commit

Permalink
add vec2
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Aug 21, 2024
1 parent e6bfdab commit 4d7f9a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions spatial/wit/wired-math/world.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package wired:math;

interface types {
record transform {
rotation: quat,
scale: vec3,
translation: vec3,
record vec2 {
x: f32,
y: f32,
}

record vec3 {
Expand All @@ -19,4 +18,10 @@ interface types {
z: f32,
w: f32,
}

record transform {
rotation: quat,
scale: vec3,
translation: vec3,
}
}
2 changes: 1 addition & 1 deletion spatial/wit/wired-prelude/world.wit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package wired:prelude;

// Prelude to be `include`d in your world for ease of use.
// Prelude to be included in your world for ease of use.
world imports {
import wired:input/handler;
import wired:log/api;
Expand Down

0 comments on commit 4d7f9a4

Please sign in to comment.