bicicleta.java 511 Bytes
Newer Older
roshka committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * 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;
    }
}