XuniRectArea Class Reference
Inherits from | NSObject |
---|---|
Conforms to | IXuniHitArea |
Declared in | HitTester.h |
tag
Gets or sets the tag of area.
@property NSObject *tag
Discussion
Gets or sets the tag of area.
Declared In
HitTester.h
rect
Gets the rectangle that makes up the area.
@property (readonly) XuniRect *rect
Discussion
Gets the rectangle that makes up the area.
Declared In
HitTester.h
– init:
Initialize an object for XuniRectArea.
- (id)init:(XuniRect *)rect
Parameters
rect |
the rect of the area. |
---|
Return Value
return an object of XuniRectArea.
Discussion
Initialize an object for XuniRectArea.
Declared In
HitTester.h
– distanceFromPoint:toPoint:option:
Calculate the distance from one point to another.
- (double)distanceFromPoint:(XuniPoint *)pt1 toPoint:(XuniPoint *)pt2 option:(XuniMeasureOption)option
Parameters
pt1 |
one point. |
---|---|
pt2 |
another point. |
option |
measure option. |
Return Value
return the distance between the two points.
Discussion
Calculate the distance from one point to another.
Declared In
HitTester.h