This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-libneofx/neofx/math.h
neoraider 1021d32f7c Physik-Engine angefangen.
Lightmaps implementiert.
2006-10-20 12:57:05 +00:00

21 lines
555 B
C

#ifndef NEOFX_MATH_H
#define NEOFX_MATH_H
#include <neofx/types.h>
float VectorDot(VECTOR, VECTOR);
VECTOR VectorCross(VECTOR, VECTOR);
VECTOR VectorSub(VECTOR, VECTOR);
VECTOR VectorAdd(VECTOR, VECTOR);
VECTOR VectorMul(VECTOR, float);
VECTOR VectorNormalize(VECTOR);
VECTOR VectorNeg(VECTOR);
float VectorLength(VECTOR);
float VectorLengthSq(VECTOR);
int VectorEqual(VECTOR, VECTOR);
MATRIX MatrixMul(MATRIX, MATRIX);
MATRIX MatrixIdentity();
MATRIX VectorMatrix(VERTEX, VECTOR, VERTEX, VECTOR);
VECTOR VectorMatrixMul(VECTOR, MATRIX);
#endif