wren_rust 0.1.3

Bindings to the Wren scripting language API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
foreign class Vec3 {
  construct new(x, y, z) {}

  foreign norm()
  foreign dot(rhs)
  foreign cross(rhs) // returns the result as a new vector

  // accessors
  foreign x
  foreign x=(x)
  foreign y
  foreign y=(y)
  foreign z
  foreign z=(z)
}