HERE Android SDK Developer's Guide

DirectionalLight

The class DirectionalLight is a member of com.here.android.mpa.mapping.MapModelObject.

Class Summary

public static final class MapModelObject.DirectionalLight

   implements com.here.android.mpa.mapping.MapModelObject.Light

extends java.lang.Object

This class specifies a directional light.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in DirectionalLight
Constructors

DirectionalLight ()

Default Constructor

DirectionalLight (Vector3f direction)

Construct a DirectionalLight

Method Summary

Table 2. Methods in DirectionalLight
Methods

public Vector3f getSource ()

Get the directional light direction.

public void setSource (Vector3f direction)

Set the directional light source.

Class Details

This class specifies a directional light.

Constructor Details

DirectionalLight ()

Default Constructor

DirectionalLight (Vector3f direction)

Construct a DirectionalLight

Parameters:

  • direction

Method Details

public Vector3f getSource ()

Get the directional light direction.

Returns:

Vector3d vector containing the light direction.

public void setSource (Vector3f direction)

Set the directional light source. This will only take effect before the light is added.

Parameters:

  • direction