2021-06-07 18:00:39 +12:00
package nz.ac.massey.javaecs ;
2021-04-27 13:50:59 +12:00
public class Gravity {
public Gravity ( ) {
}
2021-06-07 18:00:39 +12:00
2021-04-27 13:50:59 +12:00
public Gravity ( double x , double y ) {
this . x = x ;
this . y = y ;
}
public Gravity ( double x , double y , double terminalX , double terminalY ) {
this . x = x ;
this . y = y ;
this . terminalX = terminalX ;
this . terminalY = terminalY ;
}
double x = 0 . 0 ;
2021-06-07 18:00:39 +12:00
double y = - 9 . 80665 ; // Force of gravity (from https://www.bipm.org/en/publications/si-brochure - 9th edition - p159 - Bureau International des Poids et Mesures - CC BY 4.0)
2021-04-27 13:50:59 +12:00
// Gravity won't be considered if the velocity exceeds this (absolute value). Negative values are ignored (not limited)
double terminalX = - 1 . 0 ;
double terminalY = - 1 . 0 ;
}