summaryrefslogtreecommitdiff
path: root/libs/assimp/port/assimp_rs/src/structs/vec
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
committersanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
commitdb81b925d776103326128bf629cbdda576a223e7 (patch)
tree58bea8155c686733310009f6bed7363f91fbeb9d /libs/assimp/port/assimp_rs/src/structs/vec
parent55860037b14fb3893ba21cf2654c83d349cc1082 (diff)
move 3rd-party librarys into libs/ and add built-in honeysuckle
Diffstat (limited to 'libs/assimp/port/assimp_rs/src/structs/vec')
-rw-r--r--libs/assimp/port/assimp_rs/src/structs/vec/mod.rs2
-rw-r--r--libs/assimp/port/assimp_rs/src/structs/vec/vec.rs48
2 files changed, 50 insertions, 0 deletions
diff --git a/libs/assimp/port/assimp_rs/src/structs/vec/mod.rs b/libs/assimp/port/assimp_rs/src/structs/vec/mod.rs
new file mode 100644
index 0000000..3613d5d
--- /dev/null
+++ b/libs/assimp/port/assimp_rs/src/structs/vec/mod.rs
@@ -0,0 +1,2 @@
+mod vec;
+
diff --git a/libs/assimp/port/assimp_rs/src/structs/vec/vec.rs b/libs/assimp/port/assimp_rs/src/structs/vec/vec.rs
new file mode 100644
index 0000000..ee0d194
--- /dev/null
+++ b/libs/assimp/port/assimp_rs/src/structs/vec/vec.rs
@@ -0,0 +1,48 @@
+struct Vector2d {
+ x: f32,
+ y: f32
+}
+
+struct Vector3d {
+ x: f32,
+ y: f32,
+ z: f32
+}
+
+struct Vector4d {
+ x: f32,
+ y: f32,
+ z: f32,
+ w: f32
+}
+
+impl Vector2d {
+ pub fn new(x_f32: f32, y_f32: f32) -> Vector2d {
+ Vector2d {
+ x: x_f32,
+ y: y_f32
+ }
+ }
+}
+
+impl Vector3d {
+ pub fn new(x_f32: f32, y_f32: f32, z_f32: f32) -> Vector3d {
+ Vector3d {
+ x: x_f32,
+ y: y_f32,
+ z: z_f32
+ }
+ }
+}
+
+impl Vector4d {
+ pub fn new(x_f32: f32, y_f32: f32, z_f32: f32, w_f32: f32) -> Vector4d {
+ Vector4d {
+ x: x_f32,
+ y: y_f32,
+ z: z_f32,
+ w: w_f32
+ }
+ }
+}
+