The following code creates a point at(0,0):
Methods and properties of the following classes use Point objects:
You can use the new Point() constructor to create a Point
object.
pt1 The first point.pt2 The second point.pt1 The first point.pt2 The second point.f The level of interpolation between the two points. Indicates where the new point will be, along the line between pt1 and pt2. If f=1, pt1 is returned; if f=0, pt2 is returned.f determines where the new interpolated point is located
relative to the two end points specified by parameters pt1
and pt2. The closer the value of the parameter f
is to 1.0, the closer the interpolated point is to the first
point(parameter pt1). The closer the value of the parameter
f is to 0, the closer the interpolated point is to the second
point(parameter pt2).
dx The amount by which to offset the horizontal coordinate, x.dy The amount by which to offset the vertical coordinate, y.dx is added to the original value of x to create the
new x value. The value of dy is added to the original
value of y to create the new y value.
"(x=x,
y=y)", so calling the toString() method for a
point at 23,17 would return "(x=23, y=17)".
pt1andpt2.