@JsType(isNative=true, namespace="Cesium", name="Spherical") public class Spherical extends Object
Constructor and Description |
---|
Spherical()
A set of curvilinear 3-dimensional coordinates.
|
Spherical(double clock,
double cone,
double magnitude)
A set of curvilinear 3-dimensional coordinates.
|
Modifier and Type | Method and Description |
---|---|
Spherical |
clone()
Creates a duplicate of this Spherical.
|
Spherical |
clone(Spherical result)
Creates a duplicate of this Spherical.
|
static Spherical |
clone(Spherical spherical,
Spherical result)
Creates a duplicate of a Spherical.
|
boolean |
equals(Spherical other)
Returns true if this spherical is equal to the provided spherical, false otherwise.
|
static boolean |
equals(Spherical left,
Spherical right)
Returns true if the first spherical is equal to the second spherical, false otherwise.
|
boolean |
equalsEpsilon(Spherical other,
double epsilon)
Returns true if this spherical is within the provided epsilon of the provided spherical, false otherwise.
|
static boolean |
equalsEpsilon(Spherical left,
Spherical right)
Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
|
static boolean |
equalsEpsilon(Spherical left,
Spherical right,
double epsilon)
Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
|
static Spherical |
fromCartesian3(Cartesian3 cartesian3)
Converts the provided Cartesian3 into Spherical coordinates.
|
static Spherical |
fromCartesian3(Cartesian3 cartesian3,
Spherical spherical)
Converts the provided Cartesian3 into Spherical coordinates.
|
static Spherical |
normalize(Spherical spherical)
Computes the normalized version of the provided spherical.
|
static Spherical |
normalize(Spherical spherical,
Spherical result)
Computes the normalized version of the provided spherical.
|
String |
toString()
Returns a string representing this instance in the format (clock, cone, magnitude).
|
@JsConstructor public Spherical()
@JsConstructor public Spherical(double clock, double cone, double magnitude)
clock
- The angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis. Default: 0.0.cone
- The angular coordinate measured from the positive z-axis and toward the negative z-axis. Optional. Defaule: 0.0.magnitude
- The linear coordinate measured from the origin. Optional. Default: 1.0.public static Spherical clone(Spherical spherical, Spherical result)
spherical
- The spherical to clone.result
- The object to store the result into, if undefined a new instance will be created. Optional.public static boolean equals(Spherical left, Spherical right)
left
- The first Spherical to be compared.right
- The second Spherical to be compared.public static boolean equalsEpsilon(Spherical left, Spherical right)
left
- The first Spherical to be compared.right
- The second Spherical to be compared.public static boolean equalsEpsilon(Spherical left, Spherical right, double epsilon)
left
- The first Spherical to be compared.right
- The second Spherical to be compared.epsilon
- The epsilon to compare against. Optional. Default: 0.0.public static Spherical fromCartesian3(Cartesian3 cartesian3)
cartesian3
- The Cartesian3 to be converted to Spherical.public static Spherical fromCartesian3(Cartesian3 cartesian3, Spherical spherical)
cartesian3
- The Cartesian3 to be converted to Spherical.spherical
- The object in which the result will be stored, if undefined a new instance will be created. Optional.public static Spherical normalize(Spherical spherical)
spherical
- The spherical to be normalized.public static Spherical normalize(Spherical spherical, Spherical result)
spherical
- The spherical to be normalized.result
- The object to store the result into, if undefined a new instance will be created. Optional.public Spherical clone()
public Spherical clone(Spherical result)
result
- The object to store the result into, if undefined a new instance will be created. Optional.public boolean equals(Spherical other)
other
- The Spherical to be compared.public boolean equalsEpsilon(Spherical other, double epsilon)
other
- The Spherical to be compared.epsilon
- The epsilon to compare against.Copyright © 2019. All rights reserved.