Loading cesiumjs4gwt-main/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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> Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/AxisAlignedBoundingBox.java +20 −0 Original line number Diff line number Diff line Loading @@ -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. Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/BoundingSphere.java +19 −1 Original line number Diff line number Diff line Loading @@ -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 Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/Matrix2.java +79 −0 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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. * Loading Loading @@ -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. Loading @@ -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. * Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/Matrix3.java +79 −0 Original line number Diff line number Diff line Loading @@ -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. * Loading Loading @@ -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. * Loading Loading @@ -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. Loading @@ -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 Loading
cesiumjs4gwt-main/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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> Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/AxisAlignedBoundingBox.java +20 −0 Original line number Diff line number Diff line Loading @@ -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. Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/BoundingSphere.java +19 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/Matrix2.java +79 −0 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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. * Loading Loading @@ -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. Loading @@ -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. * Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/core/Matrix3.java +79 −0 Original line number Diff line number Diff line Loading @@ -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. * Loading Loading @@ -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. * Loading Loading @@ -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. Loading @@ -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