/dports/games/supertux2/SuperTux-v0.6.3-Source/src/supertux/ |
H A D | controller_hud.cpp | 30 m_controls[Control::LEFT] = Rectf::from_center(dpad_pos + Vector(-16.0f, 0.0f), btn_size); in ControllerHUD() 31 m_controls[Control::RIGHT] = Rectf::from_center(dpad_pos + Vector(16.0f, 0.0f), btn_size); in ControllerHUD() 32 m_controls[Control::UP] = Rectf::from_center(dpad_pos + Vector(0.0f, -16.0f), btn_size); in ControllerHUD() 33 m_controls[Control::DOWN] = Rectf::from_center(dpad_pos + Vector(0.0f, 16.0f), btn_size); in ControllerHUD() 36 m_controls[Control::PEEK_LEFT] = Rectf::from_center(peek_pos + Vector(-16.0f, 0.0f), btn_size); in ControllerHUD() 38 m_controls[Control::PEEK_UP] = Rectf::from_center(peek_pos + Vector(0.0f, -16.0f), btn_size); in ControllerHUD() 39 m_controls[Control::PEEK_DOWN] = Rectf::from_center(peek_pos + Vector(0.0f, 16.0f), btn_size); in ControllerHUD() 42 m_controls[Control::ACTION] = Rectf::from_center(btn_pos + Vector(-20.0f, 0.0f), btn_size); in ControllerHUD() 43 m_controls[Control::JUMP] = Rectf::from_center(btn_pos + Vector(0.0f, 20.0f), btn_size); in ControllerHUD() 45 m_controls[Control::START] = Rectf::from_center(pos + Vector(16.0f, 24.0f), Sizef(16, 8)); in ControllerHUD() [all …]
|
H A D | textscroller_screen.cpp | 121 Rectf::from_center(Vector(ctx_w / 2.0f, ctx_h / 2.0f), in draw() 129 Rectf::from_center(Vector(ctx_w / 2.0f, ctx_h / 2.0f), in draw()
|
/dports/games/vamos/vamos-0.7.1/track/ |
H A D | Road_Segment.cc | 131 Banking::height (double along, double from_center) const in height() 358 + banking().height (along, from_center); in elevation() 364 diff = -from_center - right_road_width (along); in elevation() 384 double from_center, in barrier_normal() argument 387 Three_Vector normal = (from_center > 0.0) in barrier_normal() 401 return barrier_normal (along, from_center, bump); in barrier_normal() 406 double from_center, in normal() argument 428 double from_center, in normal() argument 733 ? -from_center - right_width (distance) in on_pit_merge() 734 : from_center - left_width (distance); in on_pit_merge() [all …]
|
H A D | Road_Segment.h | 130 double height (double along, double from_center) const; 264 double elevation (double along, double from_center) const; 277 double from_center, 283 double from_center, 288 double from_center, 291 Vamos_Geometry::Three_Vector barrier_normal (double along, double from_center) const; 315 bool on_pit_merge (double distance, double from_center) const; 342 double from_center) const;
|
H A D | Gl_Road_Segment.cc | 582 Gl_Road_Segment::material_at (double along, double from_center) in material_at() argument 584 if (from_center > left_road_width (along) + kerb_width (LEFT, along)) in material_at() 586 else if (from_center > left_road_width (along)) in material_at() 588 else if (from_center > -right_road_width (along)) in material_at() 590 else if (from_center > -right_road_width (along) - kerb_width (RIGHT, along)) in material_at() 672 double from_center = (*it)->from_edge (); in build() local 675 from_center = -(from_center + right_road_width (along)); in build() 679 from_center += left_road_width (along) + (*it)->width (); in build() 683 double x = center_of_curve ().x - from_center * sin (angle); in build() 684 double y = center_of_curve ().y + from_center * cos (angle); in build() [all …]
|
H A D | Strip_Track.h | 267 double from_center, 270 double from_center) const; 477 double from_center (const Vamos_Geometry::Three_Vector& pos, 483 double from_center) const;
|
H A D | Strip_Track.cc | 632 Road::position (double along, double from_center, const Gl_Road_Segment& segment) const in position() argument 634 return segment.position (along - segment.start_distance (), from_center); in position() 638 Road::position (double along, double from_center) const in position() 642 return position (along, from_center, *segment); in position() 1278 double from_center = in.pit ().side () == RIGHT in build() local 1282 from_center), in build() 1288 from_center = out.pit ().side () == RIGHT in build() 1292 from_center), in build() 1584 Strip_Track::position (double along, double from_center) const in position() 1586 return mp_track->position (along, from_center); in position()
|
H A D | Gl_Road_Segment.h | 125 const Vamos_Geometry::Material& material_at (double along, double from_center);
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rgrl/ |
H A D | rgrl_est_homography2d.cxx | 31 vnl_vector<double> from_center(2), to_center(2); in estimate() local 33 from_center, to_center ) ) in estimate() 81 return new rgrl_trans_homography2d( H, covar, from_center, to_center ); in estimate() 110 vnl_vector< double > & from_center, in normalize() 124 from_center.fill( 0.0 ); in normalize() 136 from_center += from_pt * wgt; in normalize() 149 from_center /= sum_wgt; in normalize() 163 wgt * std::sqrt( vnl_math::sqr( from_pt[0] - from_center[0] ) + in normalize() 164 vnl_math::sqr( from_pt[1] - from_center[1] ) ); in normalize() 178 from_norm_matrix( 0, 2 ) = -from_center[0] / from_avg_distance; in normalize() [all …]
|
H A D | rgrl_est_homography2d.h | 56 vnl_vector< double > & from_center,
|
H A D | rgrl_trans_quadratic.h | 50 set_from_center( vnl_vector<double> const& from_center );
|
H A D | rgrl_trans_reduced_quad.h | 62 void set_from_center( vnl_vector<double> const& from_center );
|
H A D | rgrl_trans_reduced_quad.cxx | 96 set_from_center( vnl_vector<double> const& from_center ) in set_from_center() argument 98 from_centre_ = from_center; in set_from_center()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ash/login/ui/ |
H A D | user_switch_flip_animation.cc | 29 gfx::Transform from_center; in BuildRotation() local 31 from_center.RotateAboutYAxis(180); in BuildRotation() 32 from_center.Translate(-width / 2.f, 0); in BuildRotation() 34 std::make_unique<ui::InterpolatedConstantTransform>(from_center); in BuildRotation()
|
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/src/ |
H A D | OrientedBox.cpp | 385 CartVect from_center = point - center; in contained() local 387 return fabs(from_center % axes.col(0)) - length[0] <= tol && in contained() 388 fabs(from_center % axes.col(1)) - length[1] <= tol && in contained() 389 fabs(from_center % axes.col(2)) - length[2] <= tol ; in contained() 393 if (fabs(from_center % axes.col(i)) - length*length > length*tol) in contained() 687 const CartVect from_center = input_position - center; in closest_location_in_box() local 690 CartVect local( from_center % axes.col(0), in closest_location_in_box() 691 from_center % axes.col(1), in closest_location_in_box() 692 from_center % axes.col(2) ); in closest_location_in_box() 701 CartVect local( (from_center % axes.col(0)) / (axes.col(0) % axes.col(0)), in closest_location_in_box() [all …]
|
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/src/mesquite/Misc/ |
H A D | MsqGeomPrim.cpp | 114 const Vector3D from_center = point - center(); in closest() local 115 const Vector3D norm_proj = normal() * (normal() % from_center); // unit normal! in closest() 116 const Vector3D in_plane = from_center - norm_proj; in closest() 128 const Vector3D from_center = point - center(); in closest() local 129 Vector3D in_plane = from_center - (from_center % normal()); in closest()
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/tests/ |
H A D | rectf_test.cpp | 65 TEST(RectfTest, from_center) in TEST() argument 67 ASSERT_EQ(Rectf::from_center({16.0f, 16.0f}, {32.0f, 32.0f}), Rectf(0.0f, 0.0f, 32.0f, 32.0f)); in TEST()
|
H A D | rect_test.cpp | 66 TEST(RectTest, from_center) in TEST() argument 68 ASSERT_EQ(Rect::from_center(16, 16, 32, 32), Rect(0, 0, 32, 32)); in TEST()
|
/dports/devel/libarea/libarea-2752cd9/ |
H A D | Area.h | 24 bool from_center; member 33 from_center = From_center; in CAreaPocketParams()
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rgrl/tests/ |
H A D | test_transformation.cxx | 136 vnl_vector<double> from_center(2), to_center(2); in test_trans_quadratic() local 137 from_center[0] = 4; from_center[1] = 10; in test_trans_quadratic() 186 …rgrl_transformation_sptr xform2 = new rgrl_trans_quadratic( Q, A, t, covar, from_center, to_center… in test_trans_quadratic()
|
/dports/graphics/py-vecrec/vecrec-0.3.0/tests/ |
H A D | 30_test_rectangle.py | 122 minibox = Rect.from_center(point, 4, 4) 176 assert Rect.from_center(v, 8, 6) == Rect(1, 3, 8, 6) 177 assert Rect.from_center(t, 4, 2) == Rect(5, 7, 4, 2)
|
/dports/games/vamos/vamos-0.7.1/world/ |
H A D | Robot_Driver.cc | 162 double line_y = m_racing_line.from_center (m_track_position.x, m_segment_index); in get_lane_shift() 607 return !((m_racing_line.from_center (along + 4*m_speed, segment) in maybe_passable() 608 * m_racing_line.from_center (along + 2*m_speed, segment)) < 0); in maybe_passable() 642 double across = m_racing_line.from_center (far, segment); in get_pass_side() 668 const double across = m_racing_line.from_center (along, segment); in get_block_side() 1032 Robot_Racing_Line::from_center (double along, size_t segment) const in from_center() function in Robot_Racing_Line
|
/dports/graphics/dia/dia-0.97.3/objects/standard/ |
H A D | arc.c | 197 Point from_center; in arc_distance_from() local 203 from_center = *point; in arc_distance_from() 204 point_sub(&from_center, &arc->center); in arc_distance_from() 206 angle = -atan2(from_center.y, from_center.x)*180.0/M_PI; in arc_distance_from() 211 d = fabs(sqrt(point_dot(&from_center, &from_center)) - arc->radius); in arc_distance_from()
|
/dports/graphics/py-vecrec/vecrec-0.3.0/ |
H A D | README.rst | 45 >>> Rect.from_center(a, 1, 1)
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/math/ |
H A D | rect.hpp | 39 static Rect from_center(int center_x, int center_y, int width, int height) in from_center() function in Rect
|