Переименование типов в соответствии со стилем POSIX, отказ от префикса bg_
This commit is contained in:
parent
d2a25823a5
commit
605afabd94
25 changed files with 1109 additions and 1035 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
// ================= Inversion ================== //
|
||||
|
||||
int bg_fp32_matrix3x3_invert(BgFP32Matrix3x3* matrix)
|
||||
int fp32_matrix3x3_invert(fp32_matrix3x3_t* matrix)
|
||||
{
|
||||
const float determinant = bg_fp32_matrix3x3_get_determinant(matrix);
|
||||
const float determinant = fp32_matrix3x3_get_determinant(matrix);
|
||||
|
||||
if (-BG_FP32_EPSYLON <= determinant && determinant <= BG_FP32_EPSYLON) {
|
||||
if (-FP32_EPSYLON <= determinant && determinant <= FP32_EPSYLON) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -39,11 +39,11 @@ int bg_fp32_matrix3x3_invert(BgFP32Matrix3x3* matrix)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int bg_fp64_matrix3x3_invert(BgFP64Matrix3x3* matrix)
|
||||
int fp64_matrix3x3_invert(fp64_matrix3x3_t* matrix)
|
||||
{
|
||||
const double determinant = bg_fp64_matrix3x3_get_determinant(matrix);
|
||||
const double determinant = fp64_matrix3x3_get_determinant(matrix);
|
||||
|
||||
if (-BG_FP64_EPSYLON <= determinant && determinant <= BG_FP64_EPSYLON) {
|
||||
if (-FP64_EPSYLON <= determinant && determinant <= FP64_EPSYLON) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -78,11 +78,11 @@ int bg_fp64_matrix3x3_invert(BgFP64Matrix3x3* matrix)
|
|||
|
||||
// ================ Make Inverted =============== //
|
||||
|
||||
int bg_fp32_matrix3x3_set_inverted(const BgFP32Matrix3x3* matrix, BgFP32Matrix3x3* result)
|
||||
int fp32_matrix3x3_set_inverted(const fp32_matrix3x3_t* matrix, fp32_matrix3x3_t* result)
|
||||
{
|
||||
const float determinant = bg_fp32_matrix3x3_get_determinant(matrix);
|
||||
const float determinant = fp32_matrix3x3_get_determinant(matrix);
|
||||
|
||||
if (-BG_FP32_EPSYLON <= determinant && determinant <= BG_FP32_EPSYLON) {
|
||||
if (-FP32_EPSYLON <= determinant && determinant <= FP32_EPSYLON) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -115,11 +115,11 @@ int bg_fp32_matrix3x3_set_inverted(const BgFP32Matrix3x3* matrix, BgFP32Matrix3x
|
|||
return 1;
|
||||
}
|
||||
|
||||
int bg_fp64_matrix3x3_set_inverted(const BgFP64Matrix3x3* matrix, BgFP64Matrix3x3* result)
|
||||
int fp64_matrix3x3_set_inverted(const fp64_matrix3x3_t* matrix, fp64_matrix3x3_t* result)
|
||||
{
|
||||
const double determinant = bg_fp64_matrix3x3_get_determinant(matrix);
|
||||
const double determinant = fp64_matrix3x3_get_determinant(matrix);
|
||||
|
||||
if (-BG_FP64_EPSYLON <= determinant && determinant <= BG_FP64_EPSYLON) {
|
||||
if (-FP64_EPSYLON <= determinant && determinant <= FP64_EPSYLON) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue