|
Blender
V2.93
|
#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) |
|
static |
Definition at line 193 of file transform_mode_rotate.c.
References activeSnap(), applyNumInput(), applyRotationValue(), applySnapping(), CON_APPLY, ED_area_status_text(), hasNumInput(), headerRotation(), large_rotation_limit(), negate_v3_v3(), NULL, recalcData(), str, t, transform_snap_increment(), UI_MAX_DRAW_STR, and validSnap().
Referenced by initRotation().
|
static |
Definition at line 116 of file transform_mode_rotate.c.
References angle(), axis_angle_normalized_to_mat3(), copy_v3_v3(), ElementRotation(), TransData::ext, fabsf, TransData::factor, float(), FOREACH_TRANS_DATA_CONTAINER, TransDataExtension::irot, large_rotation_limit(), M_PI, NULL, TransDataExtension::rot, ROT_MODE_EUL, TransDataExtension::rotOrder, t, T_PROP_EDIT, and TD_SKIP.
Referenced by applyRotation().
Definition at line 95 of file transform_mode_rotate.c.
References getSnapPoint(), RotationBetween(), and t.
Referenced by initRotation().
| void initRotation | ( | TransInfo * | t | ) |
Definition at line 230 of file transform_mode_rotate.c.
References applyRotation(), ApplySnapRotation(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, RotationBetween(), t, T_2D_EDIT, T_NO_CONSTRAINT, TFM_ROTATION, transform_mode_default_modal_orientation_set(), USER_UNIT_ROT_RADIANS, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
Definition at line 104 of file transform_mode_rotate.c.
References angle(), fabsf, float(), fmodf, and M_PI.
Referenced by applyRotation(), and applyRotationValue().
Definition at line 43 of file transform_mode_rotate.c.
References acosf, angle(), atan2f, CON_APPLY, copy_m3_m4(), cross_v3_v3v3(), dot_v3v3(), float(), M_PI, mul_m3_v3(), normalize_v3(), NULL, project_v3_v3v3(), sub_v3_v3v3(), and t.
Referenced by ApplySnapRotation(), and initRotation().