Lines Matching defs:polygon

72 			void	_FillBitmap(point* polygon);
73 void _InitPolygon(const BRect& b, point* polygon) const;
75 void _MorphPolygon(const BRect& b, point* polygon);
395 TestView::_FillBitmap(point* polygon)
411 pointList[0].x = polygon[0].x;
412 pointList[0].y = polygon[0].y;
413 pointList[1].x = polygon[1].x;
414 pointList[1].y = polygon[1].y;
415 pointList[2].x = polygon[2].x;
416 pointList[2].y = polygon[2].y;
417 pointList[3].x = polygon[3].x;
418 pointList[3].y = polygon[3].y;
429 TestView::_InitPolygon(const BRect& b, point* polygon) const
431 polygon[0].x = b.left;
432 polygon[0].y = b.top;
433 polygon[0].direction_x = random_number_between(-SPEED, SPEED);
434 polygon[0].direction_y = random_number_between(-SPEED, SPEED);
435 polygon[0].velocity_x = 0.0;
436 polygon[0].velocity_y = 0.0;
437 polygon[1].x = b.right;
438 polygon[1].y = b.top;
439 polygon[1].direction_x = random_number_between(-SPEED, SPEED);
440 polygon[1].direction_y = random_number_between(-SPEED, SPEED);
441 polygon[1].velocity_x = 0.0;
442 polygon[1].velocity_y = 0.0;
443 polygon[2].x = b.right;
444 polygon[2].y = b.bottom;
445 polygon[2].direction_x = random_number_between(-SPEED, SPEED);
446 polygon[2].direction_y = random_number_between(-SPEED, SPEED);
447 polygon[2].velocity_x = 0.0;
448 polygon[2].velocity_y = 0.0;
449 polygon[3].x = b.left;
450 polygon[3].y = b.bottom;
451 polygon[3].direction_x = random_number_between(-SPEED, SPEED);
452 polygon[3].direction_y = random_number_between(-SPEED, SPEED);
453 polygon[3].velocity_x = 0.0;
454 polygon[3].velocity_y = 0.0;
515 TestView::_MorphPolygon(const BRect& b, point* polygon)
517 morph(&polygon[0].x, &polygon[0].direction_x, &polygon[0].velocity_x, b.left, b.right);
518 morph(&polygon[1].x, &polygon[1].direction_x, &polygon[1].velocity_x, b.left, b.right);
519 morph(&polygon[2].x, &polygon[2].direction_x, &polygon[2].velocity_x, b.left, b.right);
520 morph(&polygon[3].x, &polygon[3].direction_x, &polygon[3].velocity_x, b.left, b.right);
521 morph(&polygon[0].y, &polygon[0].direction_y, &polygon[0].velocity_y, b.top, b.bottom);
522 morph(&polygon[1].y, &polygon[1].direction_y, &polygon[1].velocity_y, b.top, b.bottom);
523 morph(&polygon[2].y, &polygon[2].direction_y, &polygon[2].velocity_y, b.top, b.bottom);
524 morph(&polygon[3].y, &polygon[3].direction_y, &polygon[3].velocity_y, b.top, b.bottom);