This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/include/BH/Math/Vec4f.h
Mikhail Romanko fc774fd0ff Refactor, separate docs from headers, add ru docs
Doxygen kind'a sucks and I need multilanguage documentation, so I did
that. Also, separated massive Math.h file into smaller files.
2025-06-21 20:12:15 +03:00

81 lines
1.7 KiB
C

#ifndef BH_MATH_VEC4F_H
#define BH_MATH_VEC4F_H
#include "../Common.h"
void BH_Vec4fAdd(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fSub(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fMul(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fScale(const float a[4],
float b,
float out[4]);
void BH_Vec4fMulAdd(const float a[4],
const float b[4],
const float c[4],
float out[4]);
void BH_Vec4fNegate(const float in[4],
float out[4]);
float BH_Vec4fDot(const float a[4],
const float b[4]);
float BH_Vec4fLength(const float in[4]);
void BH_Vec4fNormal(const float in[4],
float out[4]);
float BH_Vec4fNormalEx(const float in[4],
float out[4]);
void BH_Vec4fMin(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fMax(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fLerp(const float a[4],
const float b[4],
float t,
float out[4]);
void BH_Vec4fProject(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fBarycentric(const float a[4],
const float b[4],
const float c[4],
float v,
float w,
float out[4]);
#endif /* BH_MATH_VEC4F */