Ich habe letztens einen Post erstellt, der aber nicht beantwortet wurde, ich weiß nicht warum, da die sonst immer schnell beantwortet wurden. Deshalb habe ich mir überlegt, noch mal einen neuen zu machen.
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
public double getProjectedX(double focalLength) {
double projectedX = translate(position.numbers[0][0] + middle.numbers[0][0], focalLength);
System.out.println("x:" + projectedX);
return projectedX;
}
public double getProjectedY(double focalLength) {
double projectedY = translate(position.numbers[0][1] + middle.numbers[0][1], focalLength);
return projectedY;
}
private double translate(double xOrY, double focalLength) {
return (focalLength*xOrY)/(focalLength+position.numbers[0][2] + middle.numbers[0][2]);
//return (xOrY)/(position.numbers[0][2] + middle.numbers[0][2]);
//return xOrY;
}
final double d1 = 1.1D;
final double d2 = 10D;
System.out.println(d1 / d2);
final BigDecimal b1 = new BigDecimal("1.1");
final BigDecimal b2 = new BigDecimal("10");
System.out.println(b1.divide(b2));