On this page
Rectangle
     class
    
  A class for representing two-dimensional rectangles whose properties are immutable.
- Implemented by
 
Constructors
- Rectangle(T left, T top, T width, T height) 
    const
 - 
    
Create a rectangle spanned by
(left, top)and(left+width, top+height). - Rectangle.fromPoints(Point<T> a, Point<T> b) 
    factory
 - 
    
Create a rectangle spanned by the points
aandb; 
Properties
- height → T 
    final
 - left → T 
    final
 - top → T 
    final
 - width → T 
    final
 - bottom → T 
    read-only, inherited
 - 
    
The y-coordinate of the bottom edge.
 - bottomLeft → Point<T> 
    read-only, inherited
 - bottomRight → Point<T> 
    read-only, inherited
 - hashCode → int
    read-only, inherited
 - right → T 
    read-only, inherited
 - 
    
The x-coordinate of the right edge.
 - runtimeType → Type
    read-only, inherited
 - 
    
A representation of the runtime type of the object.
 - topLeft → Point<T> 
    read-only, inherited
 - topRight → Point<T> 
    read-only, inherited
 
Operators
- operator ==(
other) → bool inherited - 
    
The equality operator.
 
Methods
- boundingBox(
Rectangle<T> other) → Rectangle<T> inherited - 
    
Returns a new rectangle which completely contains
thisandother. - containsPoint(
Point<num> another) → bool inherited - 
    
Tests whether
anotheris inside or along the edges ofthis. - containsRectangle(
Rectangle<num> another) → bool inherited - 
    
Tests whether
thisentirely containsanother. - intersection(
Rectangle<T> other) → Rectangle<T> inherited - 
    
Computes the intersection of
thisandother. - intersects(
Rectangle<num> other) → bool inherited - 
    
Returns true if
thisintersectsother. - noSuchMethod(
Invocation invocation) → dynamic inherited - 
    
Invoked when a non-existent method or property is accessed.
 - toString(
) → String inherited - 
    
Returns a string representation of this object.
 
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
 https://api.dartlang.org/stable/1.24.3/dart-math/Rectangle-class.html