Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- public class Punkt{
- protected double x;
- protected double y;
- public Punkt(x,y){
- this.x = p.x;
- this.y = p.y;
- }
- public Punkt przesunięcie(double a, double b) {
- this.x += a;
- this.y += b;
- return this;
- }/*
- public double odległośćOdPocz() {
- }
- public double odległośćOdPunktu(Punkt p) {
- }
- public Punkt wzgledemodciętej() {
- }
- public Punkt względemrzędnej() {
- }
- public Punkt względemPoczątku() {
- }*
- public String toString() {
- return "(" + x + ", " + ")";*/
- }
Advertisement
Add Comment
Please, Sign In to add comment