Package | Description |
---|---|
org.cesiumjs.cs.core | |
org.cesiumjs.cs.scene |
Modifier and Type | Field and Description |
---|---|
Cartesian4[] |
CullingVolume.planes
Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal
to the plane, and the w component is the distance of the plane from the origin.
|
Modifier and Type | Method and Description |
---|---|
static Cartesian4 |
Cartesian4.abs(Cartesian4 cartesian,
Cartesian4 result)
Computes the absolute value of the provided Cartesian.
|
static Cartesian4 |
Cartesian4.add(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise sum of two Cartesians.
|
Cartesian4 |
Cartesian4.clone()
Duplicates this Cartesian4 instance.
|
Cartesian4 |
Cartesian4.clone(Cartesian4 result)
Duplicates this Cartesian4 instance.
|
static Cartesian4 |
Cartesian4.clone(Cartesian4 cartesian,
Cartesian4 result)
Duplicates a Cartesian4 instance.
|
static Cartesian4 |
Cartesian4.divideByScalar(Cartesian4 cartesian,
double scalar,
Cartesian4 result)
Divides the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Cartesian4.divideComponents(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise quotient of two Cartesians.
|
Cartesian4 |
Cartesian4.equals(Cartesian4 right)
Compares this Cartesian against the provided Cartesian componentwise and returns true if they are equal, false otherwise.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array,
Cartesian4 result)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array,
int startingIndex)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array,
int startingIndex,
Cartesian4 result)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Cartesian4 |
Cartesian4.fromColor(Color color)
Creates a Cartesian4 instance from a Color. red, green, blue, and alpha map to x, y, z, and w, respectively.
|
static Cartesian4 |
Cartesian4.fromColor(Color color,
Cartesian4 result)
Creates a Cartesian4 instance from a Color. red, green, blue, and alpha map to x, y, z, and w, respectively.
|
static Cartesian4 |
Cartesian4.fromElements(double x,
double y,
double z,
double w)
Creates a Cartesian4 instance from x and y coordinates.
|
static Cartesian4 |
Cartesian4.fromElements(double x,
double y,
double z,
double w,
Cartesian4 result)
Creates a Cartesian4 instance from x and y coordinates.
|
static Cartesian4 |
Matrix4.getColumn(Matrix4 matrix,
int index,
Cartesian4 result)
Retrieves a copy of the matrix column at the provided index as a Cartesian3 instance.
|
static Cartesian4 |
Matrix4.getRow(Matrix4 matrix,
int index,
Cartesian4 result)
Retrieves a copy of the matrix row at the provided index as a Cartesian3 instance.
|
static Cartesian4 |
Cartesian4.lerp(Cartesian4 start,
Cartesian4 end,
double t)
Computes the linear interpolation or extrapolation at t using the provided cartesians.
|
static Cartesian4 |
Cartesian4.lerp(Cartesian4 start,
Cartesian4 end,
double t,
Cartesian4 result)
Computes the linear interpolation or extrapolation at t using the provided cartesians.
|
static Cartesian4 |
Cartesian4.maximumByComponent(Cartesian4 first,
Cartesian4 second)
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.maximumByComponent(Cartesian4 first,
Cartesian4 second,
Cartesian4 result)
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.minimumByComponent(Cartesian4 first,
Cartesian4 second)
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.minimumByComponent(Cartesian4 first,
Cartesian4 second,
Cartesian4 result)
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.mostOrthogonalAxis(Cartesian4 cartesian)
Returns the axis that is most orthogonal to the provided Cartesian.
|
static Cartesian4 |
Cartesian4.mostOrthogonalAxis(Cartesian4 cartesian,
Cartesian4 result)
Returns the axis that is most orthogonal to the provided Cartesian.
|
static Cartesian4 |
Cartesian4.multiplyByScalar(Cartesian4 cartesian,
double scalar)
Multiplies the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Cartesian4.multiplyByScalar(Cartesian4 cartesian,
double scalar,
Cartesian4 result)
Multiplies the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Matrix4.multiplyByVector(Matrix4 matrix,
Cartesian4 cartesian,
Cartesian4 result)
Computes the product of a matrix and a column vector.
|
static Cartesian4 |
Cartesian4.multiplyComponents(Cartesian4 left,
Cartesian4 right)
Computes the componentwise product of two Cartesians.
|
static Cartesian4 |
Cartesian4.multiplyComponents(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise product of two Cartesians.
|
static Cartesian4 |
Cartesian4.negate(Cartesian4 cartesian)
Negates the provided Cartesian.
|
static Cartesian4 |
Cartesian4.negate(Cartesian4 cartesian,
Cartesian4 result)
Negates the provided Cartesian.
|
static Cartesian4 |
Cartesian4.normalize(Cartesian4 cartesian)
Computes the normalized form of the supplied Cartesian.
|
static Cartesian4 |
Cartesian4.normalize(Cartesian4 cartesian,
Cartesian4 result)
Computes the normalized form of the supplied Cartesian.
|
static Cartesian4 |
Cartesian4.subtract(Cartesian4 left,
Cartesian4 right)
Computes the componentwise difference of two Cartesians.
|
static Cartesian4 |
Cartesian4.subtract(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise difference of two Cartesians.
|
static Cartesian4 |
Cartesian4.UNIT_W()
An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 1.0).
|
static Cartesian4 |
Cartesian4.UNIT_X()
An immutable Cartesian4 instance initialized to (1.0, 0.0, 0.0, 0.0).
|
static Cartesian4 |
Cartesian4.UNIT_Y()
An immutable Cartesian4 instance initialized to (0.0, 1.0, 0.0, 0.0).
|
static Cartesian4 |
Cartesian4.UNIT_Z()
An immutable Cartesian4 instance initialized to (0.0, 0.0, 1.0, 0.0).
|
static Cartesian4 |
Cartesian4.unpack(double[] array)
Retrieves an instance from a packed array.
|
static Cartesian4 |
Cartesian4.unpack(double[] array,
int startingIndex,
Cartesian4 result)
Retrieves an instance from a packed array.
|
static Cartesian4[] |
Cartesian4.unpackArray(com.google.gwt.core.client.JsArrayNumber array)
Unpacks an array of cartesian components into and array of Cartesian4s.
|
static Cartesian4[] |
Cartesian4.unpackArray(com.google.gwt.core.client.JsArrayNumber array,
Cartesian4[] result)
Unpacks an array of cartesian components into and array of Cartesian4s.
|
static Cartesian4 |
Cartesian4.ZERO()
An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 0.0).
|
Modifier and Type | Method and Description |
---|---|
static Cartesian4 |
Cartesian4.abs(Cartesian4 cartesian,
Cartesian4 result)
Computes the absolute value of the provided Cartesian.
|
static Cartesian4 |
Cartesian4.add(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise sum of two Cartesians.
|
Cartesian4 |
Cartesian4.clone(Cartesian4 result)
Duplicates this Cartesian4 instance.
|
static Cartesian4 |
Cartesian4.clone(Cartesian4 cartesian,
Cartesian4 result)
Duplicates a Cartesian4 instance.
|
static double |
Cartesian4.distance(Cartesian4 left,
Cartesian4 right)
Computes the distance between two points.
|
static double |
Cartesian4.distanceSquared(Cartesian4 left,
Cartesian4 right)
Computes the squared distance between two points.
|
static Cartesian4 |
Cartesian4.divideByScalar(Cartesian4 cartesian,
double scalar,
Cartesian4 result)
Divides the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Cartesian4.divideComponents(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise quotient of two Cartesians.
|
static double |
Cartesian4.dot(Cartesian4 left,
Cartesian4 right)
Computes the dot (scalar) product of two Cartesians.
|
Cartesian4 |
Cartesian4.equals(Cartesian4 right)
Compares this Cartesian against the provided Cartesian componentwise and returns true if they are equal, false otherwise.
|
static boolean |
Cartesian4.equals(Cartesian4 left,
Cartesian4 right)
Compares the provided Cartesians componentwise and returns true if they are equal, false otherwise.
|
static boolean |
Cartesian4.equalsEpsilon(Cartesian4 left,
Cartesian4 right,
double relativeEpsilon,
double absoluteEpsilon)
Compares the provided Cartesians componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.
|
boolean |
Cartesian4.equalsEpsilon(Cartesian4 right,
double relativeEpsilon,
double absoluteEpsilon)
Compares this Cartesian against the provided Cartesian componentwise and returns true if they pass an absolute or
relative tolerance test, false otherwise.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array,
Cartesian4 result)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Cartesian4 |
Cartesian4.fromArray(double[] array,
int startingIndex,
Cartesian4 result)
Creates a Cartesian4 from two consecutive elements in an array.
|
static Plane |
Plane.fromCartesian4(Cartesian4 coefficients)
Creates a plane from the general equation
|
static Color |
Color.fromCartesian4(Cartesian4 cartesian)
Creates a Color instance from a Cartesian4. x, y, z, and w map to red, green, blue, and alpha, respectively.
|
static Cartesian2 |
Cartesian2.fromCartesian4(Cartesian4 cartesian,
Cartesian2 result)
Creates a Cartesian2 instance from an existing Cartesian4.
|
static Cartesian3 |
Cartesian3.fromCartesian4(Cartesian4 cartesian,
Cartesian3 result)
Creates a Cartesian3 instance from an existing Cartesian4.
|
static Color |
Color.fromCartesian4(Cartesian4 cartesian,
Color result)
Creates a Color instance from a Cartesian4. x, y, z, and w map to red, green, blue, and alpha, respectively.
|
static Plane |
Plane.fromCartesian4(Cartesian4 coefficients,
Plane result)
Creates a plane from the general equation
|
static Rectangle |
Rectangle.fromCartesianArray(Cartesian4[] cartesians)
Creates the smallest possible Rectangle that encloses all positions in the provided array.
|
static Rectangle |
Rectangle.fromCartesianArray(Cartesian4[] cartesians,
Ellipsoid ellipsoid)
Creates the smallest possible Rectangle that encloses all positions in the provided array.
|
static Rectangle |
Rectangle.fromCartesianArray(Cartesian4[] cartesians,
Ellipsoid ellipsoid,
Rectangle result)
Creates the smallest possible Rectangle that encloses all positions in the provided array.
|
static Cartesian4 |
Cartesian4.fromColor(Color color,
Cartesian4 result)
Creates a Cartesian4 instance from a Color. red, green, blue, and alpha map to x, y, z, and w, respectively.
|
static Cartesian4 |
Cartesian4.fromElements(double x,
double y,
double z,
double w,
Cartesian4 result)
Creates a Cartesian4 instance from x and y coordinates.
|
static Cartesian4 |
Matrix4.getColumn(Matrix4 matrix,
int index,
Cartesian4 result)
Retrieves a copy of the matrix column at the provided index as a Cartesian3 instance.
|
static Cartesian4 |
Matrix4.getRow(Matrix4 matrix,
int index,
Cartesian4 result)
Retrieves a copy of the matrix row at the provided index as a Cartesian3 instance.
|
static Cartesian4 |
Cartesian4.lerp(Cartesian4 start,
Cartesian4 end,
double t)
Computes the linear interpolation or extrapolation at t using the provided cartesians.
|
static Cartesian4 |
Cartesian4.lerp(Cartesian4 start,
Cartesian4 end,
double t,
Cartesian4 result)
Computes the linear interpolation or extrapolation at t using the provided cartesians.
|
static double |
Cartesian4.magnitude(Cartesian4 cartesian)
Computes the Cartesian's magnitude (length).
|
static double |
Cartesian4.magnitudeSquared(Cartesian4 cartesian)
Computes the provided Cartesian's squared magnitude.
|
static Cartesian4 |
Cartesian4.maximumByComponent(Cartesian4 first,
Cartesian4 second)
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.maximumByComponent(Cartesian4 first,
Cartesian4 second,
Cartesian4 result)
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
|
static double |
Cartesian4.maximumComponent(Cartesian4 cartesian)
Computes the value of the maximum component for the supplied Cartesian.
|
static Cartesian4 |
Cartesian4.minimumByComponent(Cartesian4 first,
Cartesian4 second)
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
|
static Cartesian4 |
Cartesian4.minimumByComponent(Cartesian4 first,
Cartesian4 second,
Cartesian4 result)
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
|
static double |
Cartesian4.minimumComponent(Cartesian4 cartesian)
Computes the value of the minimum component for the supplied Cartesian.
|
static Cartesian4 |
Cartesian4.mostOrthogonalAxis(Cartesian4 cartesian)
Returns the axis that is most orthogonal to the provided Cartesian.
|
static Cartesian4 |
Cartesian4.mostOrthogonalAxis(Cartesian4 cartesian,
Cartesian4 result)
Returns the axis that is most orthogonal to the provided Cartesian.
|
static Cartesian4 |
Cartesian4.multiplyByScalar(Cartesian4 cartesian,
double scalar)
Multiplies the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Cartesian4.multiplyByScalar(Cartesian4 cartesian,
double scalar,
Cartesian4 result)
Multiplies the provided Cartesian componentwise by the provided scalar.
|
static Cartesian4 |
Matrix4.multiplyByVector(Matrix4 matrix,
Cartesian4 cartesian,
Cartesian4 result)
Computes the product of a matrix and a column vector.
|
static Cartesian4 |
Cartesian4.multiplyComponents(Cartesian4 left,
Cartesian4 right)
Computes the componentwise product of two Cartesians.
|
static Cartesian4 |
Cartesian4.multiplyComponents(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise product of two Cartesians.
|
static Cartesian4 |
Cartesian4.negate(Cartesian4 cartesian)
Negates the provided Cartesian.
|
static Cartesian4 |
Cartesian4.negate(Cartesian4 cartesian,
Cartesian4 result)
Negates the provided Cartesian.
|
static Cartesian4 |
Cartesian4.normalize(Cartesian4 cartesian)
Computes the normalized form of the supplied Cartesian.
|
static Cartesian4 |
Cartesian4.normalize(Cartesian4 cartesian,
Cartesian4 result)
Computes the normalized form of the supplied Cartesian.
|
static double[] |
Cartesian4.pack(Cartesian4 value)
Stores the provided instance into the provided array.
|
static double[] |
Cartesian4.pack(Cartesian4 value,
double[] array,
int startingIndex)
Stores the provided instance into the provided array.
|
static double[] |
Cartesian4.packArray(Cartesian4[] array)
Flattens an array of Cartesian4s into and array of components.
|
static double[] |
Cartesian4.packArray(Cartesian4[] array,
double[] result)
Flattens an array of Cartesian4s into and array of components.
|
static Matrix4 |
Matrix4.setColumn(Matrix4 matrix,
int index,
Cartesian4 cartesian,
Matrix4 result)
Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian3 instance.
|
static Matrix4 |
Matrix4.setRow(Matrix4 matrix,
int index,
Cartesian4 cartesian,
Matrix4 result)
Computes a new matrix that replaces the specified row in the provided matrix with the provided Cartesian3 instance.
|
static Matrix4 |
Matrix4.setTranslation(Matrix4 matrix,
Cartesian4 translation,
Cartesian4 result)
Computes a new matrix that replaces the translation in the rightmost column of the provided matrix with the provided
translation.
|
static Cartesian4 |
Cartesian4.subtract(Cartesian4 left,
Cartesian4 right)
Computes the componentwise difference of two Cartesians.
|
static Cartesian4 |
Cartesian4.subtract(Cartesian4 left,
Cartesian4 right,
Cartesian4 result)
Computes the componentwise difference of two Cartesians.
|
static Cartesian4 |
Cartesian4.unpack(double[] array,
int startingIndex,
Cartesian4 result)
Retrieves an instance from a packed array.
|
static Cartesian4[] |
Cartesian4.unpackArray(com.google.gwt.core.client.JsArrayNumber array,
Cartesian4[] result)
Unpacks an array of cartesian components into and array of Cartesian4s.
|
Constructor and Description |
---|
CullingVolume(Cartesian4[] planes)
The culling volume defined by planes.
|
Modifier and Type | Method and Description |
---|---|
Cartesian4 |
Camera.cameraToWorldCoordinates(Cartesian4 cartesian)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian4 |
Camera.cameraToWorldCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian4 |
Camera.worldToCameraCoordinates(Cartesian4 cartesian)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Cartesian4 |
Camera.worldToCameraCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Modifier and Type | Method and Description |
---|---|
Cartesian4 |
Camera.cameraToWorldCoordinates(Cartesian4 cartesian)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian4 |
Camera.cameraToWorldCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian4 |
Camera.worldToCameraCoordinates(Cartesian4 cartesian)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Cartesian4 |
Camera.worldToCameraCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Copyright © 2019. All rights reserved.