/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package javacleta; /** * * @author Ber */ public class bicicleta { double x, y, giro; private void avanzar(double n){ this.x = this.x + (n * Math.cos(this.giro)); this.y = this.y + (n*Math.sin(this.giro)); } private void girar(double n){ this.giro = n; } }