returnnewIntersection(t1,newCenter.add(ray.direction.mul(t1)),(newCenter.add(ray.direction.mul(t1)).sub(this.center)).normalize());//schnittpunkt ist origin + direction * t
returnnewIntersection(t1,ray.origin.add(ray.direction.mul(t1)),(ray.origin.add(ray.direction.mul(t1)).sub(this.center)).normalize());//schnittpunkt ist origin + direction * t
}else{
}else{
lett2=-newCenter.dot(ray.direction)-Math.sqrt(c);
lett2=-newCenter.dot(ray.direction)-Math.sqrt(c);
returnnewIntersection(t2,newCenter.add(ray.direction.mul(t2)),(newCenter.add(ray.direction.mul(t2)).sub(this.center)).normalize());//schnittpunkt ist origin + direction * t
returnnewIntersection(t2,ray.origin.add(ray.direction.mul(t2)),(ray.origin.add(ray.direction.mul(t2)).sub(this.center)).normalize());//schnittpunkt ist origin + direction * t