Prueba

Dependencies:   mbed QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Vector.h Source File

Vector.h

00001 //
00002 // Created by m007 on 03/04/2020.
00003 //
00004 
00005 #ifndef VECTOR_H
00006 #define VECTOR_H
00007 #include <stdio.h>
00008 #include <math.h>
00009 struct Vector_3N{
00010     float vector[3];
00011 };
00012 struct Vector_4N{
00013     float vector[4];
00014 };
00015 struct Vector_3N crossProduct(float v_A[3], float v_B[3]);
00016 struct Vector_3N ProdMatrVect(float mat1[][3], float vector[3],float factor);
00017 struct Vector_4N ProdMatrVect_4N(float mat1[][4], float vector[4],float factor);
00018 struct Vector_3N ProdVectMatr(float vector[3],float mat1[][3],float factor);
00019 struct Vector_3N ProdVectConst(float v_A[3], float c);
00020 struct Vector_3N AddVectors(float v_A[3], float v_B[3]);
00021 struct Vector_3N SubtractionVectors(float v_A[3], float v_B[3]);
00022 float ProdVectors(float v_A[3], float v_B[3]);
00023 struct Vector_3N zeros(int max);
00024 void copyVector(struct Vector_3N* vector1, struct Vector_3N  vector2);
00025 
00026 #endif //VECTOR_H