Lines Matching refs:rPoint
544 long SmRect::OrientedDist(const Point &rPoint) const in OrientedDist()
550 sal_Bool bIsInside = IsInsideItalicRect(rPoint); in OrientedDist()
557 aRef.X() = rPoint.X() >= aIC.X() ? GetItalicRight() : GetItalicLeft(); in OrientedDist()
558 aRef.Y() = rPoint.Y() >= aIC.Y() ? GetBottom() : GetTop(); in OrientedDist()
563 if (rPoint.X() > GetItalicRight()) in OrientedDist()
565 else if (rPoint.X() < GetItalicLeft()) in OrientedDist()
568 aRef.X() = rPoint.X(); in OrientedDist()
570 if (rPoint.Y() > GetBottom()) in OrientedDist()
572 else if (rPoint.Y() < GetTop()) in OrientedDist()
575 aRef.Y() = rPoint.Y(); in OrientedDist()
579 Point aDist (aRef - rPoint); in OrientedDist()
588 sal_Bool SmRect::IsInsideRect(const Point &rPoint) const in IsInsideRect()
590 return rPoint.Y() >= GetTop() in IsInsideRect()
591 && rPoint.Y() <= GetBottom() in IsInsideRect()
592 && rPoint.X() >= GetLeft() in IsInsideRect()
593 && rPoint.X() <= GetRight(); in IsInsideRect()
597 sal_Bool SmRect::IsInsideItalicRect(const Point &rPoint) const in IsInsideItalicRect()
599 return rPoint.Y() >= GetTop() in IsInsideItalicRect()
600 && rPoint.Y() <= GetBottom() in IsInsideItalicRect()
601 && rPoint.X() >= GetItalicLeft() in IsInsideItalicRect()
602 && rPoint.X() <= GetItalicRight(); in IsInsideItalicRect()