Lines Matching defs:point
95 TAnalogClock::MouseDown(BPoint point)
98 BView::MouseDown(point);
102 if (InMinuteHand(point)) {
110 if (InHourHand(point)) {
121 TAnalogClock::MouseUp(BPoint point)
124 BView::MouseUp(point);
146 TAnalogClock::MouseMoved(BPoint point, uint32 transit, const BMessage* message)
149 BView::MouseMoved(point, transit, message);
154 SetMinuteHand(point);
156 SetHourHand(point);
331 TAnalogClock::InHourHand(BPoint point)
340 return _InHand(point, ticks, fRadius * 0.7);
345 TAnalogClock::InMinuteHand(BPoint point)
347 return _InHand(point, fMinutes, fRadius * 0.9);
352 TAnalogClock::SetHourHand(BPoint point)
354 point.x -= fCenterX;
355 point.y -= fCenterY;
357 float pointPhi = _GetPhi(point);
370 TAnalogClock::SetMinuteHand(BPoint point)
372 point.x -= fCenterX;
373 point.y -= fCenterY;
375 float pointPhi = _GetPhi(point);
384 TAnalogClock::_GetPhi(BPoint point)
386 if (point.x == 0 && point.y < 0)
388 if (point.x == 0 && point.y > 0)
390 if (point.y == 0 && point.x < 0)
392 if (point.y == 0 && point.x > 0)
395 float pointPhi = atanf(-1. * point.y / point.x);
396 if (point.y < 0. && point.x > 0.) // right upper corner
398 if (point.y > 0. && point.x > 0.) // right lower corner
400 if (point.y > 0. && point.x < 0.) // left lower corner
402 if (point.y < 0. && point.x < 0.) // left upper corner
409 TAnalogClock::_InHand(BPoint point, int32 ticks, float radius)
411 point.x -= fCenterX;
412 point.y -= fCenterY;
414 float pRadius = sqrt(pow(point.x, 2) + pow(point.y, 2));
419 float pointPhi = _GetPhi(point);