![]() |
Graphics Now
Cartesian Points |
![]() |
The Cartesian package includes a C_Point defined class, which holds the point's x and y values.
The constructor for C_Point has two arguments which are the x and y
locations of the point.
To create a C_Point with coordinates of (50, 100), first declare a variable of type C_Point
and then call the constructorC_Point Begin; or do both simultaneously:Begin = new C_Point (50, 100); C_Point End = new C_Point (80, 30); |
See Also: | ||||
|
|
![]() |
![]() |