Guest User

Untitled

a guest
Dec 22nd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import javax.swing.*;
  2. public class Punkt{
  3. protected double x;
  4. protected double y;
  5. public Punkt(x,y){
  6. this.x = p.x;
  7. this.y = p.y;
  8. }
  9. public Punkt przesunięcie(double a, double b) {
  10. this.x += a;
  11. this.y += b;
  12. return this;
  13. }/*
  14. public double odległośćOdPocz() {
  15.  
  16. }
  17. public double odległośćOdPunktu(Punkt p) {
  18.  
  19. }
  20. public Punkt wzgledemodciętej() {
  21.  
  22. }
  23. public Punkt względemrzędnej() {
  24.  
  25. }
  26. public Punkt względemPoczątku() {
  27.  
  28. }*
  29. public String toString() {
  30. return "(" + x + ", " + ")";*/
  31. }
Advertisement
Add Comment
Please, Sign In to add comment