Commit 3b96e183 authored by iSergio's avatar iSergio
Browse files

Merge branch '1.91' into 'develop'

New CesiumJS version 1.91

See merge request !30
parents d5f05e75 a3d88c7d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
    <parent>
        <artifactId>cesiumjs4gwt</artifactId>
        <groupId>org.cesiumjs</groupId>
        <version>1.90.0</version>
        <version>1.91.0</version>
    </parent>

    <name>CesiumJS GWT Wrapper</name>
+20 −0
Original line number Diff line number Diff line
@@ -141,6 +141,26 @@ public class AxisAlignedBoundingBox {
    @JsMethod
    public static native boolean equals(AxisAlignedBoundingBox left, AxisAlignedBoundingBox right);

    /**
     * Creates an instance of an AxisAlignedBoundingBox from its corners.
     * @param minimum The minimum point along the x, y, and z axes.
     * @param maximum The maximum point along the x, y, and z axes.
     * @return The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.
     */
    @JsMethod
    public static native AxisAlignedBoundingBox fromCorners(Cartesian3 minimum, Cartesian3 maximum);

    /**
     * Creates an instance of an AxisAlignedBoundingBox from its corners.
     * @param minimum The minimum point along the x, y, and z axes.
     * @param maximum The maximum point along the x, y, and z axes.
     * @param result The object onto which to store the result.
     * @return The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.
     */
    @JsMethod
    public static native AxisAlignedBoundingBox fromCorners(Cartesian3 minimum, Cartesian3 maximum,
                                                            AxisAlignedBoundingBox result);

    /**
     * Computes an instance of an AxisAlignedBoundingBox. The box is determined by
     * finding the points spaced the farthest apart on the x, y, and z axes.
+19 −1
Original line number Diff line number Diff line
@@ -466,7 +466,25 @@ public class BoundingSphere {
     */
    @JsMethod
    public static native BoundingSphere fromRectangleWithHeights2D(Rectangle rectangle, Object projection,
                                                                   double minimumHeight, double maximumHeight, BoundingSphere result);
                                                                   double minimumHeight, double maximumHeight,
                                                                   BoundingSphere result);

    /**
     * Computes a tight-fitting bounding sphere enclosing the provided affine transformation.
     * @param transformation The affine transformation.
     * @return The modified result parameter or a new BoundingSphere instance if none was provided.
     */
    @JsMethod
    public static native BoundingSphere fromTransformation(Matrix4 transformation);

    /**
     * Computes a tight-fitting bounding sphere enclosing the provided affine transformation.
     * @param transformation The affine transformation.
     * @param result The object onto which to store the result.
     * @return The modified result parameter or a new BoundingSphere instance if none was provided.
     */
    @JsMethod
    public static native BoundingSphere fromTransformation(Matrix4 transformation, BoundingSphere result);

    /**
     * Computes a tight-fitting bounding sphere enclosing a list of 3D points, where
+79 −0
Original line number Diff line number Diff line
@@ -497,6 +497,15 @@ public class Matrix2 {
    @JsMethod
    public static native double getMaximumScale(Matrix2 matrix);

    /**
     * Extracts the rotation matrix assuming the matrix is an affine transformation.
     * @param matrix The matrix.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 getRotation(Matrix2 matrix, Matrix2 result);

    /**
     * Retrieves a copy of the matrix row at the provided index as a Cartesian2
     * instance.
@@ -565,6 +574,25 @@ public class Matrix2 {
    @JsMethod
    public static native Matrix2 multiplyByScale(Matrix2 matrix, Cartesian2 scale, Matrix2 result);

    /**
     * Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.
     * @param matrix The matrix on the left-hand side.
     * @param scale The uniform scale on the right-hand side.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 multiplyByUniformScale(Matrix2 matrix, double scale);

    /**
     * Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.
     * @param matrix The matrix on the left-hand side.
     * @param scale The uniform scale on the right-hand side.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 multiplyByUniformScale(Matrix2 matrix, double scale, Matrix2 result);

    /**
     * Computes the product of a matrix and a column vector.
     *
@@ -622,6 +650,15 @@ public class Matrix2 {
    @JsMethod
    public static native Matrix2 setColumn(Matrix2 matrix, int index, Cartesian2 cartesian, Matrix2 result);

    /**
     * Sets the rotation assuming the matrix is an affine transformation.
     * @param matrix The matrix.
     * @param rotation The rotation matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 setRotation(Matrix2 matrix, Matrix2 rotation);

    /**
     * Computes a new matrix that replaces the specified row in the provided matrix
     * with the provided Cartesian2 instance.
@@ -636,6 +673,48 @@ public class Matrix2 {
    @JsMethod
    public static native Matrix2 setRow(Matrix2 matrix, int index, Cartesian2 cartesian, Matrix2 result);

    /**
     * Computes a new matrix that replaces the scale with the provided scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The scale that replaces the scale of the provided matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 setScale(Matrix2 matrix, Cartesian2 scale);

    /**
     * Computes a new matrix that replaces the scale with the provided scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The scale that replaces the scale of the provided matrix.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 setScale(Matrix2 matrix, Cartesian2 scale, Matrix2 result);

    /**
     * Computes a new matrix that replaces the scale with the provided uniform scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The uniform scale that replaces the scale of the provided matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 setUniformScale(Matrix2 matrix, double scale);

    /**
     * Computes a new matrix that replaces the scale with the provided uniform scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The uniform scale that replaces the scale of the provided matrix.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix2 setUniformScale(Matrix2 matrix, double scale, Matrix2 result);

    /**
     * Computes the difference of two matrices.
     *
+79 −0
Original line number Diff line number Diff line
@@ -682,6 +682,15 @@ public class Matrix3 {
    @JsMethod
    public static native double getMaximumScale(Matrix3 matrix);

    /**
     * Extracts the rotation assuming the matrix is an affine transformation.
     *
     * @param matrix The matrix.
     * @return The modified result parameter
     */
    @JsMethod
    public static native Matrix3 getRotation(Matrix3 matrix);

    /**
     * Extracts the rotation assuming the matrix is an affine transformation.
     *
@@ -780,6 +789,25 @@ public class Matrix3 {
    @JsMethod
    public static native Matrix3 multiplyByScale(Matrix3 matrix, Cartesian3 scale, Matrix3 result);

    /**
     * Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.
     * @param matrix The matrix on the left-hand side.
     * @param scale The uniform scale on the right-hand side.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 multiplyByUniformScale(Matrix3 matrix, double scale);

    /**
     * Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.
     * @param matrix The matrix on the left-hand side.
     * @param scale The uniform scale on the right-hand side.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 multiplyByUniformScale(Matrix3 matrix, double scale, Matrix3 result);

    /**
     * Computes the product of a matrix and a column vector.
     *
@@ -837,6 +865,15 @@ public class Matrix3 {
    @JsMethod
    public static native Matrix3 setColumn(Matrix3 matrix, int index, Cartesian3 cartesian, Matrix3 result);

    /**
     * Sets the rotation assuming the matrix is an affine transformation.
     * @param matrix The matrix.
     * @param rotation The rotation matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 setRotation(Matrix3 matrix, Matrix3 rotation);

    /**
     * Computes a new matrix that replaces the specified row in the provided matrix
     * with the provided Cartesian3 instance.
@@ -851,6 +888,48 @@ public class Matrix3 {
    @JsMethod
    public static native Matrix3 setRow(Matrix3 matrix, int index, Cartesian3 cartesian, Matrix3 result);

    /**
     * Computes a new matrix that replaces the scale with the provided scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The scale that replaces the scale of the provided matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 setScale(Matrix3 matrix, Cartesian3 scale);

    /**
     * Computes a new matrix that replaces the scale with the provided scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The scale that replaces the scale of the provided matrix.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 setScale(Matrix3 matrix, Cartesian3 scale, Matrix3 result);

    /**
     * Computes a new matrix that replaces the scale with the provided uniform scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The uniform scale that replaces the scale of the provided matrix.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 setUniformScale(Matrix3 matrix, double scale);

    /**
     * Computes a new matrix that replaces the scale with the provided uniform scale.
     * This assumes the matrix is an affine transformation.
     * @param matrix The matrix to use.
     * @param scale The uniform scale that replaces the scale of the provided matrix.
     * @param result The object onto which to store the result.
     * @return The modified result parameter.
     */
    @JsMethod
    public static native Matrix3 setUniformScale(Matrix3 matrix, double scale, Matrix3 result);

    /**
     * Computes the difference of two matrices.
     *
Loading