Home
last modified time | relevance | path

Searched refs:half_angle (Results 1 – 25 of 33) sorted by relevance

12

/dports/graphics/cogl/cogl-1.22.8/cogl/
H A Dcogl-quaternion.c110 float half_angle; in cogl_quaternion_init_from_angle_vector() local
121 sin_half_angle = sinf (half_angle); in cogl_quaternion_init_from_angle_vector()
123 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_angle_vector()
162 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_x_rotation()
164 quaternion->x = sinf (half_angle); in cogl_quaternion_init_from_x_rotation()
179 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_y_rotation()
182 quaternion->y = sinf (half_angle); in cogl_quaternion_init_from_y_rotation()
196 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_z_rotation()
200 quaternion->z = sinf (half_angle); in cogl_quaternion_init_from_z_rotation()
464 float half_angle; in cogl_quaternion_pow() local
[all …]
/dports/x11-wm/muffin/muffin-4.8.0/cogl/cogl/
H A Dcogl-quaternion.c110 float half_angle; in cogl_quaternion_init_from_angle_vector() local
121 sin_half_angle = sinf (half_angle); in cogl_quaternion_init_from_angle_vector()
123 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_angle_vector()
162 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_x_rotation()
164 quaternion->x = sinf (half_angle); in cogl_quaternion_init_from_x_rotation()
179 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_y_rotation()
182 quaternion->y = sinf (half_angle); in cogl_quaternion_init_from_y_rotation()
196 quaternion->w = cosf (half_angle); in cogl_quaternion_init_from_z_rotation()
200 quaternion->z = sinf (half_angle); in cogl_quaternion_init_from_z_rotation()
464 float half_angle; in cogl_quaternion_pow() local
[all …]
/dports/math/wfmath/wfmath-1.0.2/wfmath/
H A Dquaternion.cpp198 CoordType half_angle = angle / 2; in rotation() local
200 m_w = std::cos(half_angle); in rotation()
203 m_vec[i] = (i == axis) ? std::sin(half_angle) : 0; in rotation()
215 CoordType half_angle = angle / 2; in rotation() local
222 m_w = std::cos(half_angle); in rotation()
223 m_vec = axis * (std::sin(half_angle) / axis_mag); in rotation()
234 CoordType half_angle = axis_mag / 2; in rotation() local
241 m_w = std::cos(half_angle); in rotation()
242 m_vec = axis * (std::sin(half_angle) / axis_mag); in rotation()
/dports/graphics/freeglut/freeglut-3.2.1/progs/demos/spaceball/
H A Dvmath.c7 float half_angle = angle * 0.5f; in quat_rotate() local
8 float sin_half = (float)sin(half_angle); in quat_rotate()
10 rq.w = (float)cos(half_angle); in quat_rotate()
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/progs/demos/spaceball/
H A Dvmath.c7 float half_angle = angle * 0.5f; in quat_rotate() local
8 float sin_half = (float)sin(half_angle); in quat_rotate()
10 rq.w = (float)cos(half_angle); in quat_rotate()
/dports/science/py-kinematics/kinematics-0.1.7/kinematics/tests/
H A Dtest_sphere.py23 half_angle = 5 variable in TestPerturbedVector
24 qp = sphere.perturb_vec(q, half_angle)
30 np.testing.assert_array_less(angle, self.half_angle)
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/vsph/
H A Dvsph_sph_box_2d.cxx515 vsph_utils::half_angle(min_ph, max_ph, ang1, ang2, true); in area()
530 vsph_utils::half_angle(min_ph, max_ph, ang1, ang2, true); in center()
670 vsph_utils::half_angle(min_ph,max_ph, ha1, ha2, in_radians_); in planar_quads()
755 vsph_utils::half_angle(ph_start,ph_end, ha1, ha2, in_radians_); in sub_divide()
766 vsph_utils::half_angle(ph_start, ha, ha1, ha2, in_radians_); in sub_divide()
770 vsph_utils::half_angle(ha, ph_end, ha1, ha2, in_radians_); in sub_divide()
790 vsph_utils::half_angle(ph_start, ha, ha1, ha2, in_radians_); in sub_divide()
794 vsph_utils::half_angle(ha, ph_end, ha1, ha2, in_radians_); in sub_divide()
1078 vsph_utils::half_angle(b2_min_ph, b1_max_ph, ha1, ha2, in_radians); in intersection()
1089 vsph_utils::half_angle(b1_min_ph, b2_max_ph, ha1, ha2, in_radians); in intersection()
[all …]
H A Dvsph_utils.cxx28 void vsph_utils::half_angle(double phi_a, double phi_b, double& ang_1, in half_angle() function in vsph_utils
130 vsph_utils::half_angle(b2_min_ph, b1_max_ph, ha1, ha2, in_radians); in sph_inter_area()
140 vsph_utils::half_angle(b1_min_ph, b2_max_ph, ha1, ha2, in_radians); in sph_inter_area()
157 vsph_utils::half_angle(b1_min_ph, b2_max_ph, ha1, ha2, in_radians); in sph_inter_area()
163 vsph_utils::half_angle(b2_min_ph, b1_max_ph, ha1, ha2, in_radians); in sph_inter_area()
H A Dvsph_utils.h32 static void half_angle(double phi_a, double phi_b, double& ang_1,
H A Dvsph_camera_bounds.cxx200 double half_angle = std::atan(0.5/rmin); in rotation_angle_interval() local
201 return 2.0*half_angle; in rotation_angle_interval()
/dports/graphics/openorienteering-mapper/mapper-0.9.2/src/gui/widgets/
H A Dpie_menu.cpp344 double half_angle = M_PI / action_count; in updateCachedState() local
346 double inner_corner_radius = inner_radius / cos(half_angle); in updateCachedState()
352 …er_radius = (inner_radius + icon_padding_inner + icon_size + icon_padding_outer) / cos(half_angle); in updateCachedState()
359 double angle = (2*i + 1) * half_angle; in updateCachedState()
376 double angle = (2*i - 1) * half_angle; in updateCachedState()
382 angle = 2*i * half_angle; in updateCachedState()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/gfx/geometry/
H A Dquaternion.cc99 double half_angle = std::acos(cos_half_angle); in Slerp() local
101 double scaleA = std::sin((1 - t) * half_angle) / sin_half_angle; in Slerp()
102 double scaleB = std::sin(t * half_angle) / sin_half_angle; in Slerp()
/dports/science/siconos/siconos-4.4.0/mechanics/src/collision/bullet/
H A DBullet2d3DR.cpp60 double half_angle = from(2)/2.0; in copyQuatRot2d() local
62 to = boost::math::quaternion<double>(cos(half_angle), 0.0, 0.0, sin(half_angle)); in copyQuatRot2d()
H A DBullet2dR.cpp60 double half_angle = from(2)/2.0; in copyQuatRot2d() local
62 to = boost::math::quaternion<double>(cos(half_angle), 0.0, 0.0, sin(half_angle)); in copyQuatRot2d()
/dports/multimedia/obs-studio/obs-studio-27.1.3/plugins/obs-filters/
H A Dcolor-correction-filter.c182 float half_angle = 0.5f * (float)(hue_shift / (180.0f / M_PI)); in color_correction_filter_update_v1() local
185 float rot_quad1 = root3 * (float)sin(half_angle); in color_correction_filter_update_v1()
188 float rot_quaternion_w = (float)cos(half_angle); in color_correction_filter_update_v1()
331 float half_angle = 0.5f * (float)(hue_shift / (180.0f / M_PI)); in color_correction_filter_update_v2() local
334 float rot_quad1 = root3 * (float)sin(half_angle); in color_correction_filter_update_v2()
337 float rot_quaternion_w = (float)cos(half_angle); in color_correction_filter_update_v2()
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/vsph/tests/
H A Dtest_sph_geom.cxx25 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
29 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
33 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
37 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
41 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
282 vsph_utils::half_angle(az_a, az_b, ang1, ang2, false); in test_sph_geom()
/dports/games/magiccube4d/magiccube4d-src-2_2/
H A DSQuat.cpp54 double half_angle = r * 0.5; in InitFromVector() local
55 double sin_half_angle = sin(half_angle); in InitFromVector()
56 rot = cos(half_angle); in InitFromVector()
/dports/games/vamos/vamos-0.7.1/track/
H A DRoad_Segment.cc654 const double half_angle = arc () / 2.0; in coordinates() local
658 rotate ((pi / 2.0 - half_angle - m_start_angle) * Three_Vector::Z); in coordinates()
662 2.0 * m_start_skew / tan (half_angle) in coordinates()
664 -2.0 * (m_radius + (m_start_skew / sin (half_angle) in coordinates()
665 * (m_radius * cos (half_angle) in coordinates()
/dports/misc/ompl/ompl-1.5.2/src/ompl/base/spaces/src/
H A DSO3StateSpace.cpp61 double half_angle = angle / 2.0; in computeAxisAngle() local
62 double s = sin(half_angle) / norm; in computeAxisAngle()
66 q.w = cos(half_angle); in computeAxisAngle()
/dports/math/fcl05/fcl-0.5.0/src/math/
H A Dtransform.cpp180 FCL_REAL half_angle = 0.5 * angle; in fromAxisAngle() local
181 FCL_REAL sn = sin((double)half_angle); in fromAxisAngle()
182 data[0] = cos((double)half_angle); in fromAxisAngle()
/dports/graphics/opencv/opencv-4.5.3/modules/core/include/opencv2/core/
H A Ddualquaternion.inl.hpp94 T half_angle = angle / 2, half_d = d / 2; in createFromPitch() local
98 Quat<T> dual = -half_d * std::sin(half_angle) + std::sin(half_angle) * qmoment + in createFromPitch()
99 half_d * std::cos(half_angle) * qaxis; in createFromPitch()
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/foundation/math/
H A Dquaternion.h240 const ValueType half_angle = ValueType(0.5) * angle; in make_rotation() local
243 std::cos(half_angle), in make_rotation()
244 std::sin(half_angle) * axis); in make_rotation()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/s2/
H A Ds2polyline.cc413 double half_angle = asin(sin(tolerance.radians()) / sin(distance)); in FindEndVertex() local
414 S1Interval target = S1Interval::FromPoint(center).Expanded(half_angle); in FindEndVertex()
/dports/graphics/R-cran-s2/s2/src/s2/
H A Ds2polyline.cc443 double half_angle = asin(sin(tolerance.radians()) / sin(distance)); in FindEndVertex() local
444 S1Interval target = S1Interval::FromPoint(center).Expanded(half_angle); in FindEndVertex()
/dports/graphics/s2/s2geometry-0.9.0/src/s2/
H A Ds2polyline.cc443 double half_angle = asin(sin(tolerance.radians()) / sin(distance)); in FindEndVertex() local
444 S1Interval target = S1Interval::FromPoint(center).Expanded(half_angle); in FindEndVertex()

12