This class represents a three dimensional vector.
[ For full details, see nokia.maps.util.Vector3D ]
| Methods |
|---|
|
add (other) : {nokia.maps.util.Vector3D} This method creates the sum of the given vector and the vector provided by the caller. |
|
angle (px, py, intertX, intertY) : {Number} This method retrieves the angle of the given vector in decimal degrees to the given point within a coordinate system in which the highest (positive) values are in the top right. |
|
divide (other) : {nokia.maps.util.Vector3D} This method creates vector that represents the quotient obtained by dividing the given vector by the one supplied by the caller. |
|
dot (other) : {number} This method creates the dot product of the given vector and the one provided by the caller. |
|
magnitude () : {number} This method calculates the length of the given vector. |
|
multiply (other) : {nokia.maps.util.Vector3D} This method creates a vector that represents the product of the given vector and the one provided by the caller. |
|
normal (other) : {nokia.maps.util.Vector3D} This method creates the normal vector of the plane between the given vector and the one provided by the caller. |
|
normalize () : {nokia.maps.util.Vector3D} This method creates normalized representation of the given vector. |
|
subtract (other) : {nokia.maps.util.Vector3D} This method creates a vector that represents the difference between the given vector and the vector supplied by the caller. |
This class represents a three dimensional vector.
readonly {Number} x
This property holds the x component of the vector.
readonly {Number} y
This property holds the y component of the vector
readonly {Number} z
This property holds the z component of the vector.
add(other) : {nokia.maps.util.Vector3D}
This method creates the sum of the given vector and the vector provided by the caller.
type: {nokia.maps.util.Vector3D}
The vector to be added
angle(px, py, intertX, intertY) : {Number}
This method retrieves the angle of the given vector in decimal degrees to the given point within a coordinate system in which the highest (positive) values are in the top right.
For screen coordinates, the y-axis must be inverted. For a normalized vector, the method can be called without parameters to return its normalized angle.
type: {Number}
[optional]The x-coordinate of the point to which the angle is to be calculated; if not provided zero is used
type: {Number}
[optional]The y-coordinate of the point to which the angle is to be calculated; if not provided zero is used
type: {Boolean}
[optional]If provided and true, the x-axis is inverted, therefore the coordinates are increasing to the left and decreasing to the right
type: {Boolean}
[optional]If provided and true, the y-axis is inverted, therefore the coordinates are increasing to the bottom and decreasing to the top
divide(other) : {nokia.maps.util.Vector3D}
This method creates vector that represents the quotient obtained by dividing the given vector by the one supplied by the caller.
type: {nokia.maps.util.Vector3D}
The vector by which divide the given vector
dot(other) : {number}
This method creates the dot product of the given vector and the one provided by the caller.
type: {nokia.maps.util.Vector3D}
The vector with which the given vector is to be dot-multiplied
magnitude() : {number}
This method calculates the length of the given vector.
multiply(other) : {nokia.maps.util.Vector3D}
This method creates a vector that represents the product of the given vector and the one provided by the caller.
type: {nokia.maps.util.Vector3D}
The vector to be multiplied
normal(other) : {nokia.maps.util.Vector3D}
This method creates the normal vector of the plane between the given vector and the one provided by the caller.
type: {nokia.maps.util.Vector3D}
The vector provided by the caller
normalize() : {nokia.maps.util.Vector3D}
This method creates normalized representation of the given vector.
subtract(other) : {nokia.maps.util.Vector3D}
This method creates a vector that represents the difference between the given vector and the vector supplied by the caller.
type: {nokia.maps.util.Vector3D}
The vector to be subtracted from the given vector