Blender V2.61 - r43446
Defines | Functions

math_base_inline.c File Reference

#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "BLI_math.h"

Go to the source code of this file.

Defines

#define BLI_MATH_BASE_INLINE_H
#define SMALL_NUMBER   1.e-8f

Functions

MINLINE float sqrt3f (float f)
MINLINE double sqrt3d (double d)
MINLINE float saacos (float fac)
MINLINE float saasin (float fac)
MINLINE float sasqrt (float fac)
MINLINE float saacosf (float fac)
MINLINE float saasinf (float fac)
MINLINE float sasqrtf (float fac)
MINLINE float interpf (float target, float origin, float fac)
MINLINE float shell_angle_to_dist (const float angle)
MINLINE float power_of_2 (float val)
MINLINE int is_power_of_2_i (int n)
MINLINE int power_of_2_max_i (int n)
MINLINE int power_of_2_min_i (int n)
MINLINE float minf (float a, float b)
MINLINE float maxf (float a, float b)
MINLINE float signf (float f)

Detailed Description

Definition in file math_base_inline.c.


Define Documentation

#define BLI_MATH_BASE_INLINE_H

Definition at line 39 of file math_base_inline.c.

#define SMALL_NUMBER   1.e-8f

Definition at line 42 of file math_base_inline.c.

Referenced by fcurve_eval_keyframes(), and shell_angle_to_dist().


Function Documentation

MINLINE float interpf ( float  target,
float  origin,
float  fac 
)
MINLINE int is_power_of_2_i ( int  n)
MINLINE float maxf ( float  a,
float  b 
)
MINLINE float minf ( float  a,
float  b 
)
MINLINE float power_of_2 ( float  val)
MINLINE int power_of_2_max_i ( int  n)
MINLINE int power_of_2_min_i ( int  n)

Definition at line 134 of file math_base_inline.c.

References is_power_of_2_i().

Referenced by BL_Texture::GetPow2(), smaller_pow2_limit(), and split_width().

MINLINE float saacos ( float  fac)
MINLINE float saacosf ( float  fac)

Definition at line 78 of file math_base_inline.c.

References acosf, and M_PI.

Referenced by ff_quad_form_factor(), and occ_quad_form_factor().

MINLINE float saasin ( float  fac)

Definition at line 65 of file math_base_inline.c.

References KDL::asin(), and M_PI.

Referenced by angle_normalized_v2v2(), and angle_normalized_v3v3().

MINLINE float saasinf ( float  fac)

Definition at line 85 of file math_base_inline.c.

References asinf, and M_PI.

MINLINE float sasqrt ( float  fac)
MINLINE float sasqrtf ( float  fac)

Definition at line 92 of file math_base_inline.c.

References sqrtf.

MINLINE float shell_angle_to_dist ( const float  angle)

Definition at line 107 of file math_base_inline.c.

References cosf, fabsf, and SMALL_NUMBER.

Referenced by applyModifier(), EM_solidify(), and uv_image_outset().

MINLINE float signf ( float  f)

Definition at line 153 of file math_base_inline.c.

MINLINE double sqrt3d ( double  d)

Definition at line 51 of file math_base_inline.c.

References KDL::exp(), and log().

Referenced by findzero().

MINLINE float sqrt3f ( float  f)

Definition at line 44 of file math_base_inline.c.

References KDL::exp(), and log().

Referenced by ui_numedit_but_HSVCIRCLE().