- set(double, double) - Method in class eecs2030.lab2.Point2
-
Sets the x-coordinate and y-coordinate of this point to
newX
and newY
, respectively.
- set(double, double) - Method in class eecs2030.lab2.Vector2
-
Sets the x and y component of the vector.
- setX(double) - Method in class eecs2030.lab2.Point2
-
Sets the x-coordinate of this point to newX
.
- setX(double) - Method in class eecs2030.lab2.Vector2
-
Sets the x component of the vector.
- setY(double) - Method in class eecs2030.lab2.Point2
-
Sets the y-coordinate of this point to newY
.
- setY(double) - Method in class eecs2030.lab2.Vector2
-
Sets the y component of the vector.
- similarTo(Point2, double) - Method in class eecs2030.lab2.Point2
-
Determines if two points are almost equal (similar).
- similarTo(Vector2, double) - Method in class eecs2030.lab2.Vector2
-
Determines if two vectors are almost equal (similar).
- subtract(Point2, Point2) - Static method in class eecs2030.lab2.Point2
-
Returns a new Point2
equal to a - b
.
- subtract(Vector2) - Method in class eecs2030.lab2.Vector2
-
Subtract a vector from this vector changing the components of this
vector.
- subtract(Vector2, Vector2) - Static method in class eecs2030.lab2.Vector2
-
Returns a new Vector2D
equal to a - b
.