Blender  V2.93
transform_mode_rotate.c File Reference
#include <stdlib.h>
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_unit.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_snap.h"

Go to the source code of this file.

Functions

Transform (Rotation)
static float RotationBetween (TransInfo *t, const float p1[3], const float p2[3])
 
static void ApplySnapRotation (TransInfo *t, float *value)
 
static float large_rotation_limit (float angle)
 
static void applyRotationValue (TransInfo *t, float angle, float axis[3], const bool is_large_rotation)
 
static void applyRotation (TransInfo *t, const int UNUSED(mval[2]))
 
void initRotation (TransInfo *t)
 

Function Documentation

◆ applyRotation()

static void applyRotation ( TransInfo t,
const int   UNUSEDmval[2] 
)
static

◆ applyRotationValue()

static void applyRotationValue ( TransInfo t,
float  angle,
float  axis[3],
const bool  is_large_rotation 
)
static

◆ ApplySnapRotation()

static void ApplySnapRotation ( TransInfo t,
float value 
)
static

Definition at line 95 of file transform_mode_rotate.c.

References getSnapPoint(), RotationBetween(), and t.

Referenced by initRotation().

◆ initRotation()

void initRotation ( TransInfo t)

◆ large_rotation_limit()

static float large_rotation_limit ( float  angle)
static

Definition at line 104 of file transform_mode_rotate.c.

References angle(), fabsf, float(), fmodf, and M_PI.

Referenced by applyRotation(), and applyRotationValue().

◆ RotationBetween()

static float RotationBetween ( TransInfo t,
const float  p1[3],
const float  p2[3] 
)
static