A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.
This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.
Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.
Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:
https://reuse.software/faq/
40 lines
869 B
C
40 lines
869 B
C
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Quadric {
|
|
double a2, ab, ac, ad, b2, bc, bd, c2, cd, d2;
|
|
} Quadric;
|
|
|
|
/* Conversion. */
|
|
|
|
void BLI_quadric_from_plane(Quadric *q, const double v[4]);
|
|
void BLI_quadric_to_vector_v3(const Quadric *q, double v[3]);
|
|
|
|
void BLI_quadric_clear(Quadric *q);
|
|
|
|
/* Math operations. */
|
|
|
|
void BLI_quadric_add_qu_qu(Quadric *a, const Quadric *b);
|
|
void BLI_quadric_add_qu_ququ(Quadric *r, const Quadric *a, const Quadric *b);
|
|
void BLI_quadric_mul(Quadric *a, double scalar);
|
|
|
|
/* Solve. */
|
|
|
|
double BLI_quadric_evaluate(const Quadric *q, const double v[3]);
|
|
bool BLI_quadric_optimize(const Quadric *q, double v[3], double epsilon);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|