Задача 0000001: отказ от использования корректоров в версорах / Task 0000001: declining of usage of correctors in versors

This commit is contained in:
Andrey Pokidov 2024-11-19 14:21:01 +07:00
parent 07c1330858
commit 791557fb94
9 changed files with 421 additions and 364 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_layout_file>
<FileVersion major="1" minor="0" />
<ActiveProject path="src/geometry.cbp" />
<PreferredTarget name="Debug" />
<ActiveProject path="dev/geometry-dev.cbp" />
<PreferredTarget name="Release" />
</CodeBlocks_workspace_layout_file>

View file

@ -1,5 +1,5 @@
# depslib dependency file v1.0
1729764426 source:/home/andrey/Projects/Private/C/Geometry/dev/main.c
1731995770 source:/home/andrey/Projects/Private/C/Geometry/dev/main.c
<stdio.h>
<stdlib.h>
<math.h>
@ -7,34 +7,32 @@
<windows.h>
<time.h>
1729526406 /home/andrey/Projects/Private/C/Geometry/src/geometry.h
1731906002 /home/andrey/Projects/Private/C/Geometry/src/geometry.h
"basis.h"
"angle.h"
"vector2.h"
"vector3.h"
"vector4.h"
"matrixes.h"
"matrix2x2.h"
"matrix2x3.h"
"matrix3x2.h"
"matrix3x3.h"
"matrix4x4.h"
"tangent.h"
"rotation3.h"
"quaternion.h"
"versor.h"
"affine_map2.h"
"affine_map3.h"
"affine_map4.h"
"position2.h"
"position3.h"
1729427506 /home/andrey/Projects/Private/C/Geometry/src/basis.h
1730476002 /home/andrey/Projects/Private/C/Geometry/src/basis.h
1729764440 /home/andrey/Projects/Private/C/Geometry/src/angle.h
1730392488 /home/andrey/Projects/Private/C/Geometry/src/angle.h
<math.h>
"basis.h"
1729503050 /home/andrey/Projects/Private/C/Geometry/src/vector2.h
1731673023 /home/andrey/Projects/Private/C/Geometry/src/vector2.h
"basis.h"
"angle.h"
<math.h>
1729502950 /home/andrey/Projects/Private/C/Geometry/src/vector3.h
1731673331 /home/andrey/Projects/Private/C/Geometry/src/vector3.h
"basis.h"
"angle.h"
<math.h>
@ -44,11 +42,14 @@
"angle.h"
<math.h>
1729490828 /home/andrey/Projects/Private/C/Geometry/src/matrix2x2.h
1731673308 /home/andrey/Projects/Private/C/Geometry/src/matrix2x2.h
"angle.h"
"vector2.h"
"matrixes.h"
1729612680 /home/andrey/Projects/Private/C/Geometry/src/matrix3x3.h
1731906002 /home/andrey/Projects/Private/C/Geometry/src/matrix3x3.h
"vector3.h"
"matrixes.h"
1729490844 /home/andrey/Projects/Private/C/Geometry/src/matrix4x4.h
"vector4.h"
@ -60,18 +61,17 @@
"vector2.h"
"matrix2x2.h"
1729428324 /home/andrey/Projects/Private/C/Geometry/src/rotation3.h
1730355414 /home/andrey/Projects/Private/C/Geometry/src/rotation3.h
"basis.h"
"angle.h"
"vector3.h"
1729595110 /home/andrey/Projects/Private/C/Geometry/src/versor.h
1731995858 /home/andrey/Projects/Private/C/Geometry/src/versor.h
<stdint.h>
"basis.h"
"vector3.h"
"rotation3.h"
"matrix3x3.h"
"matrix4x4.h"
1729503008 /home/andrey/Projects/Private/C/Geometry/src/affine_map2.h
"vector2.h"
@ -107,3 +107,20 @@
"versor.h"
"affine_map3.h"
1731906002 /home/andrey/Projects/Private/C/Geometry/src/matrixes.h
1731906002 /home/andrey/Projects/Private/C/Geometry/src/matrix2x3.h
"vector2.h"
"vector3.h"
"matrixes.h"
1731906002 /home/andrey/Projects/Private/C/Geometry/src/matrix3x2.h
"vector2.h"
"vector3.h"
"matrixes.h"
1731407834 /home/andrey/Projects/Private/C/Geometry/src/quaternion.h
<math.h>
"basis.h"
"matrix3x3.h"

View file

Internal server error - Personal Git Server: Beyond coding. We Forge.

500

Internal server error

Forgejo version: 11.0.1+gitea-1.22.0

@ -52,10 +52,75 @@ SPVersor * make_random_versors(const unsigned int amount)
void print_versor(const SPVersor* versor)
{
printf("(%f, %f, %f, %f) / %e\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3, versor->_corrector - 1.0f);
printf("(%f, %f, %f, %f)\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3);
}
/*/
void print_vector(const SPVector3* vector)
{