Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_math_geom.h
| Show All 11 Lines | |||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. | * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| * | * | ||||
| * The Original Code is: some of this file. | * The Original Code is: some of this file. | ||||
| * | */ | ||||
| * */ | |||||
| #pragma once | #pragma once | ||||
| /** \file | /** \file | ||||
| * \ingroup bli | * \ingroup bli | ||||
| */ | */ | ||||
| #include "BLI_compiler_attrs.h" | #include "BLI_compiler_attrs.h" | ||||
| ▲ Show 20 Lines • Show All 791 Lines • ▼ Show 20 Lines | |||||
| MINLINE float shell_v2v2_normalized_to_dist(const float a[2], const float b[2]); | MINLINE float shell_v2v2_normalized_to_dist(const float a[2], const float b[2]); | ||||
| MINLINE float shell_v3v3_mid_normalized_to_dist(const float a[3], const float b[3]); | MINLINE float shell_v3v3_mid_normalized_to_dist(const float a[3], const float b[3]); | ||||
| MINLINE float shell_v2v2_mid_normalized_to_dist(const float a[2], const float b[2]); | MINLINE float shell_v2v2_mid_normalized_to_dist(const float a[2], const float b[2]); | ||||
| /********************************* Cubic (Bezier) *******************************/ | /********************************* Cubic (Bezier) *******************************/ | ||||
| float cubic_tangent_factor_circle_v3(const float tan_l[3], const float tan_r[3]); | float cubic_tangent_factor_circle_v3(const float tan_l[3], const float tan_r[3]); | ||||
| /********************************** Geodesics *********************************/ | |||||
| float geodesic_distance_propagate_across_triangle( | |||||
| const float v0[3], const float v1[3], const float v2[3], const float dist1, const float dist2); | |||||
| /**************************** Inline Definitions ******************************/ | /**************************** Inline Definitions ******************************/ | ||||
| #if BLI_MATH_DO_INLINE | #if BLI_MATH_DO_INLINE | ||||
| # include "intern/math_geom_inline.c" | # include "intern/math_geom_inline.c" | ||||
| #endif | #endif | ||||
| #ifdef BLI_MATH_GCC_WARN_PRAGMA | #ifdef BLI_MATH_GCC_WARN_PRAGMA | ||||
| # pragma GCC diagnostic pop | # pragma GCC diagnostic pop | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||