Home | History | Annotate | Download | only in geometry

Lines Matching defs:RectF

35 RectF::RectF(const CGRect& r)
39 CGRect RectF::ToCGRect() const {
44 void RectF::Inset(const InsetsF& insets) {
48 void RectF::Inset(float left, float top, float right, float bottom) {
54 void RectF::Offset(float horizontal, float vertical) {
58 void RectF::operator+=(const Vector2dF& offset) {
62 void RectF::operator-=(const Vector2dF& offset) {
66 InsetsF RectF::InsetsFrom(const RectF& inner) const {
73 bool RectF::operator<(const RectF& other) const {
85 bool RectF::Contains(float point_x, float point_y) const {
90 bool RectF::Contains(const RectF& rect) const {
95 bool RectF::Intersects(const RectF& rect) const {
100 void RectF::Intersect(const RectF& rect) {
117 void RectF::Union(const RectF& rect) {
133 void RectF::Subtract(const RectF& rect) {
136 if (rect.Contains(*static_cast<const RectF*>(this))) {
164 void RectF::AdjustToFit(const RectF& rect) {
174 PointF RectF::CenterPoint() const {
178 void RectF::ClampToCenteredSize(const SizeF& size) {
186 void RectF::SplitVertically(RectF* left_half, RectF* right_half) const {
195 bool RectF::SharesEdgeWith(const RectF& rect) const {
202 float RectF::ManhattanDistanceToPoint(const PointF& point) const {
211 float RectF::ManhattanInternalDistance(const RectF& rect) const {
212 RectF c(*this);
221 bool RectF::IsExpressibleAsRect() const {
227 std::string RectF::ToString() const {
233 RectF IntersectRects(const RectF& a, const RectF& b) {
234 RectF result = a;
239 RectF UnionRects(const RectF& a, const RectF& b) {
240 RectF result = a;
245 RectF SubtractRects(const RectF& a, const RectF& b) {
246 RectF result = a;
251 RectF BoundingRect(const PointF& p1, const PointF& p2) {
256 return RectF(rx, ry, rr - rx, rb - ry);