Blender  V3.3
Functions
Basic.h File Reference

Go to the source code of this file.

Functions

int min_i (int a, int b)
 
int max_i (int a, int b)
 
int clamp_i (int val, int min, int max)
 
float min_f (float a, float b)
 
float max_f (float a, float b)
 
float clamp_f (float val, float min, float max)
 
void rect_copy (int dst[2][2], int src[2][2])
 
int rect_contains_pt (int rect[2][2], int pt[2])
 
int rect_width (int rect[2][2])
 
int rect_height (int rect[2][2])
 

Function Documentation

◆ clamp_f()

float clamp_f ( float  val,
float  min,
float  max 
)

Definition at line 613 of file math_base_inline.c.

References max, max_f(), min, and min_f().

◆ clamp_i()

int clamp_i ( int  val,
int  min,
int  max 
)

Definition at line 608 of file math_base_inline.c.

References max, max_i(), min, and min_i().

◆ max_f()

float max_f ( float  a,
float  b 
)

Definition at line 23 of file Basic.c.

References Freestyle::a, and usdtokens::b().

Referenced by clamp_f().

◆ max_i()

int max_i ( int  a,
int  b 
)

Definition at line 10 of file Basic.c.

References Freestyle::a, and usdtokens::b().

Referenced by BKE_gpencil_stroke_simplify_adaptive(), clamp_i(), and rand_range_i().

◆ min_f()

float min_f ( float  a,
float  b 
)

Definition at line 19 of file Basic.c.

References Freestyle::a, and usdtokens::b().

Referenced by clamp_f().

◆ min_i()

int min_i ( int  a,
int  b 
)

Definition at line 6 of file Basic.c.

References Freestyle::a, and usdtokens::b().

Referenced by clamp_i(), loggerwindow_do_draw(), rand_range_i(), and update_cut_data_for_nurb().

◆ rect_contains_pt()

int rect_contains_pt ( int  rect[2][2],
int  pt[2] 
)

Definition at line 37 of file Basic.c.

Referenced by scrollbar_contains_pt().

◆ rect_copy()

void rect_copy ( int  dst[2][2],
int  src[2][2] 
)

Definition at line 32 of file Basic.c.

References src.

Referenced by scrollbar_get_rect(), scrollbar_set_rect(), and ui_draw_widget_back_color().

◆ rect_height()

int rect_height ( int  rect[2][2])

◆ rect_width()

int rect_width ( int  rect[2][2])