summaryrefslogtreecommitdiff
path: root/src/vector_3d.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector_3d.hpp')
-rw-r--r--src/vector_3d.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/vector_3d.hpp b/src/vector_3d.hpp
new file mode 100644
index 0000000..2827813
--- /dev/null
+++ b/src/vector_3d.hpp
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2022 Frederico de Oliveira Linhares
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef CANDY_GEAR_VECTOR_3D_H
+#define CANDY_GEAR_VECTOR_3D_H 1
+
+#include "core.hpp"
+
+extern const struct mrb_data_type cg_vector_3d_type;
+
+mrb_value
+cg_cVector3D_get_x(mrb_state *mrb, mrb_value self);
+mrb_value
+cg_cVector3D_get_y(mrb_state *mrb, mrb_value self);
+mrb_value
+cg_cVector3D_get_z(mrb_state *mrb, mrb_value self);
+
+void
+cg_vector_3d_init(mrb_state *mrb);
+
+#endif /* CANDY_GEAR_VECTOR_3D_H */