40 if ((
deg % 90) != 0) {
68 const float snap_increment)
74 if (snap_increment == 0.0f) {
78 const double increment_deg =
round(
RAD2DEG(
double(snap_increment)));
93 const bool is_large_rotation_limited)
97 if (is_large_rotation_limited) {
114 const std::optional<int> quadrant)
116 if (quadrant.has_value()) {
118 const float sin_lut[4] = {0.0f, 1.0f, 0.0f, -1.0f};
119 const float cos_lut[4] = {1.0f, 0.0f, -1.0f, 0.0f};
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
constexpr T degrees(T) RET
T mod_periodic(const T &a, const T &b)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
bool ED_numinput_double_is_int(double value)
bool hasNumInput(const NumInput *n)
void axis_angle_normalized_to_mat3_ex(float mat[3][3], const float axis[3], float angle_sin, float angle_cos)
void axis_angle_normalized_to_mat3(float R[3][3], const float axis[3], float angle)