Blender V5.3
transform_mode_rotate_quadrants.cc File Reference
#include <optional>
#include "BLI_math_base.hh"
#include "BLI_math_rotation_c.hh"
#include "ED_numinput.hh"
#include "transform.hh"
#include "transform_snap.hh"
#include "transform_mode_rotate_quadrants.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::transform

Functions

Internal Utilities
static std::optional< int > blender::ed::transform::angle_to_quadrant_or_null_from_degrees (const double degrees)
static std::optional< int > blender::ed::transform::angle_to_quadrant_or_null_from_numinput (const NumInput *n)
static std::optional< int > blender::ed::transform::angle_to_quadrant_or_null_from_radians (const float angle, const float snap_increment)
Public Functions
std::optional< int > blender::ed::transform::transform_angle_to_quadrant_or_null (const TransInfo *t, const bool is_large_rotation_limited)
void blender::ed::transform::axis_angle_normalized_to_mat3_with_quadrant (float mat[3][3], const float axis[3], const float angle, const std::optional< int > quadrant)

Detailed Description

Used to apply 90 degree rotations directly, without imprecision from radian angles, see #150900.

Definition in file transform_mode_rotate_quadrants.cc.