HERE Android SDK Developer's Guide

Vector3f

The class Vector3f is a member of com.here.android.mpa.common .

Class Summary

public final class Vector3f

extends java.lang.Object

Vector3f represents a 3D-Vector, capable to store x-,y- and z-coordinates in float values.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Vector3f
Constructors

Vector3f ()

Constructs and initializes a Vector3f to (0f,0f,0f).

Vector3f (float x, float y, float z)

Constructs and initializes a Vector3f from the specified xyz coordinates.

Method Summary

Table 2. Methods in Vector3f
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public float getX ()

Retrieves the x-component of the vector.

public float getY ()

Retrieves the y-component of the vector.

public float getZ ()

Retrieves the z-component of the vector.

public int hashCode ()

For documentation, see java.lang.Object

public void setX (float x)

Sets the x-component of the vector.

public void setY (float y)

Sets the y-component of the vector.

public void setZ (float z)

Sets the z-component of the vector.

public String toString ()

For documentation, see java.lang.Object

Class Details

Vector3f represents a 3D-Vector, capable to store x-,y- and z-coordinates in float values.

Constructor Details

Vector3f ()

Constructs and initializes a Vector3f to (0f,0f,0f).

Vector3f (float x, float y, float z)

Constructs and initializes a Vector3f from the specified xyz coordinates.

Parameters:

  • x

    the x coordinate

  • y

    the y coordinate

  • z

    the z coordinate

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public float getX ()

Retrieves the x-component of the vector.

Returns:

float representing the x component of the vector.

public float getY ()

Retrieves the y-component of the vector.

Returns:

float representing the y component of the vector.

public float getZ ()

Retrieves the z-component of the vector.

Returns:

float representing the z component of the vector.

public int hashCode ()

For documentation, see java.lang.Object

public void setX (float x)

Sets the x-component of the vector.

Parameters:

  • x

    A float value for the x component of the vector.

public void setY (float y)

Sets the y-component of the vector.

Parameters:

  • y

    A float value for the y component of the vector.

public void setZ (float z)

Sets the z-component of the vector.

Parameters:

  • z

    A float value for the z component of the vector.

public String toString ()

For documentation, see java.lang.Object