ISRectF Class Reference
Inherits from | NSObject |
---|---|
Declared in | ISRectF.h |
Overview
Class used to represent a rectangle defined by 4 float values (left, top, right, bottom) (ex: 0.5/0.5/50.0/150.5).
center
Center of the rectangle.
@property (nonatomic, readwrite) CGPoint center
Declared In
ISRectF.h
– initWithLeft:andTop:andRight:andBottom:
Main constructor.
- (instancetype)initWithLeft:(float)left andTop:(float)top andRight:(float)right andBottom:(float)bottom
Parameters
left |
Left float value (X coordinate). |
---|---|
top |
Top float value (Y coordinate). |
right |
Right float value (X coordinate). |
bottom |
Bottom float value (Y coordinate). |
Declared In
ISRectF.h
+ ISRectFWithLeft:andTop:andRight:andBottom:
Static main constructor.
+ (instancetype)ISRectFWithLeft:(float)left andTop:(float)top andRight:(float)right andBottom:(float)bottom
Parameters
left |
Left float value (X coordinate). |
---|---|
top |
Top float value (Y coordinate). |
right |
Right float value (X coordinate). |
bottom |
Bottom float value (Y coordinate). |
Declared In
ISRectF.h
+ ISRectFWithCGRect:
Static constructor.
+ (instancetype)ISRectFWithCGRect:(CGRect)rect
Parameters
rect |
CGRect to use for instantiate the new one. |
---|
Declared In
ISRectF.h
– contains:
Method used to know if the ISRectF contains the given point.
- (Boolean)contains:(CGPoint)point
Parameters
point |
Point to test. |
---|
Return Value
YES if the ISRectF contains the point, otherwise NO.
Declared In
ISRectF.h
– containsWithX:andY:
Method used to know if the ISRectF contains the given coordinates.
- (Boolean)containsWithX:(float)x andY:(float)y
Parameters
x |
X coordinate to test. |
---|---|
y |
Y coordinate to test. |
Return Value
YES if the ISRectF contains the coordinates, otherwise NO.
Declared In
ISRectF.h
– toCGRect
Method used to convert the ISRectF into CGRect.
- (CGRect)toCGRect
Return Value
The related converted CGRect.
Declared In
ISRectF.h