/** * Return a string representation of this AABB. * <p> * This method creates a new {@link DecimalFormat} on every invocation with the format string "<code>0.000E0;-</code>". * * @return the string representation */ public String toString() { return Runtime.formatNumbers(toString(Options.NUMBER_FORMAT)); }
/** * Set <code>this</code> to the union of <code>this</code> and <code>other</code>. * * @param other * the other {@link AABBf} * @return this */ public AABBf union(AABBf other) { return this.union(other, this); }
/** * Set the minimum corner coordinates. * * @param min * the minimum coordinates * @return this */ public AABBf setMin(Vector3fc min) { return this.setMin(min.x(), min.y(), min.z()); }
/** * Test whether the given point lies inside this AABB. * * @param point * the coordinates of the point * @return <code>true</code> iff the given point lies inside this AABB; <code>false</code> otherwise */ public boolean testPoint(Vector3fc point) { return testPoint(point.x(), point.y(), point.z()); }
/** * Set the maximum corner coordinates. * * @param max * the maximum coordinates * @return this */ public AABBf setMax(Vector3fc max) { return this.setMax(max.x(), max.y(), max.z()); }
/** * Set the minimum corner coordinates. * * @param min * the minimum coordinates * @return this */ public AABBf setMin(Vector3fc min) { return this.setMin(min.x(), min.y(), min.z()); }
/** * Test whether the given point lies inside this AABB. * * @param point * the coordinates of the point * @return <code>true</code> iff the given point lies inside this AABB; <code>false</code> otherwise */ public boolean testPoint(Vector3fc point) { return testPoint(point.x(), point.y(), point.z()); }
/** * Set the maximum corner coordinates. * * @param max * the maximum coordinates * @return this */ public AABBf setMax(Vector3fc max) { return this.setMax(max.x(), max.y(), max.z()); }
/** * Set <code>this</code> to the union of <code>this</code> and <code>other</code>. * * @param other * the other {@link AABBf} * @return this */ public AABBf union(AABBf other) { return this.union(other, this); }
/** * Return a string representation of this AABB. * <p> * This method creates a new {@link DecimalFormat} on every invocation with the format string "<code>0.000E0;-</code>". * * @return the string representation */ public String toString() { return Runtime.formatNumbers(toString(Options.NUMBER_FORMAT)); }
/** * Set <code>this</code> to the union of <code>this</code> and the given point <code>(x, y, z)</code>. * * @param x * the x coordinate of the point * @param y * the y coordinate of the point * @param z * the z coordinate of the point * @return this */ public AABBf union(float x, float y, float z) { return union(x, y, z, this); }
/** * Set <code>this</code> to the union of <code>this</code> and the given point <code>(x, y, z)</code>. * * @param x * the x coordinate of the point * @param y * the y coordinate of the point * @param z * the z coordinate of the point * @return this */ public AABBf union(float x, float y, float z) { return union(x, y, z, this); }
/** * Compute the union of <code>this</code> and the given point <code>p</code> and store the result in <code>dest</code>. * * @param p * the point * @param dest * will hold the result * @return dest */ public AABBf union(Vector3fc p, AABBf dest) { return union(p.x(), p.y(), p.z(), dest); }
/** * Set <code>this</code> to the union of <code>this</code> and the given point <code>p</code>. * * @param p * the point * @return this */ public AABBf union(Vector3fc p) { return union(p.x(), p.y(), p.z(), this); }
/** * Set <code>this</code> to the union of <code>this</code> and the given point <code>p</code>. * * @param p * the point * @return this */ public AABBf union(Vector3fc p) { return union(p.x(), p.y(), p.z(), this); }
/** * Compute the union of <code>this</code> and the given point <code>p</code> and store the result in <code>dest</code>. * * @param p * the point * @param dest * will hold the result * @return dest */ public AABBf union(Vector3fc p, AABBf dest) { return union(p.x(), p.y(), p.z(), dest); }