Coordinate3 class

Class for representing coordinates and positions in 3 dimensions.

@param {number=} opt_x X coordinate, defaults to 0. @param {number=} opt_y Y coordinate, defaults to 0. @param {number=} opt_z Z coordinate, defaults to 0. @struct @constructor

Constructors

Coordinate3.new(double x, double y, double z)

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
X-value @type {number}
getter/setter pair
y double
Y-value @type {number}
getter/setter pair
z double
Z-value @type {number}
getter/setter pair

Methods

copy() Coordinate3
@return {!goog.math.Coordinate3} A new copy of this Coordinate3.
difference(Coordinate3 b) Coordinate3
Returns the difference between two coordinates as a new goog.math.Coordinate3.
distance(Coordinate3 b) double
Returns the distance between two coordinates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
squaredDistance(Coordinate3 b) double
Returns the squared distance between two coordinates. Squared distances can be used for comparisons when the actual value is not required.
toString() String
Returns a nice string representing the coordinate.
override

Operators

operator ==(Object other) bool
Compares coordinates for equality.
override