Включение позиции и аффинного преобразования в проект для Visual Studio
This commit is contained in:
parent
7175c4148a
commit
3c2b89f369
9 changed files with 191 additions and 12 deletions
|
|
@ -279,9 +279,9 @@ inline void bgc_affine3_transform_point_fp32(const BgcAffine3FP32 * affine, cons
|
|||
bgc_matrix3x3_get_right_product_fp32(&affine->distortion, initial_point, &distorted);
|
||||
bgc_vector3_add_fp32(&affine->shift, &distorted, transformed_point);
|
||||
#else
|
||||
const float x1 = affine->r1c1 * initial_point->x1 + affine->r1c2 * initial_point->x2 + affine->r1c3 * initial_point->x3 + affine->shift1;
|
||||
const float x2 = affine->r2c1 * initial_point->x1 + affine->r2c2 * initial_point->x2 + affine->r2c3 * initial_point->x3 + affine->shift2;
|
||||