point_t
for points and rectangle_t
for rectangles:
area( )
method returns the area of the underlying rectangle object.
inside(point_t)
method returns 1 if the point argument is inside or on the boundary of the underlying rectangle object, and 0 otherwise.
|
self
, and it is a variable of the object type.
self
object works as an invisible parameter for a member function whose parameters are read-only.
self
in the function inside
is used to stand for the object type rectangle_t
on which these methods operate.
A penny for your thoughts, and half a penny for your land |