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

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.