ArWindow

Represents a board in an Augmented Reality (AR) environment, capable of displaying 2D UI elements and place them at 3D position.

This should be used only in an ArScreen.

See also

Constructors

Link copied to clipboard
constructor(east: Float, north: Float, up: Float)

Initialize and place the element at a given world position ENU coordinate system

constructor(qtrn: Quaternion)

Initialize and place the ArWindow at the quaternion with eye position (0f, 0f, -1f)

constructor(qtrn: Quaternion, xEye: Float, yEye: Float, zEye: Float)

Initialize and place the ArWindow at a given eye position relative to the provided quaternion

constructor(targetPosition: ArWindow.GeoLocation, userPosition: ArWindow.GeoLocation)

Initialize and place the ArWindow at the target position relative to user position

constructor()

Types

Link copied to clipboard
class GeoLocation(latitude: Double, longitude: Double, altitude: Double = 0.0)

Functions

Link copied to clipboard
open override fun getWorldPosition(): FloatArray

Get the ArWindow world position in ENU coordinate system.

Link copied to clipboard
open override fun getZIndex(): Float

Gets the Z-index of the AR element, relevant only when the element is visible.

Link copied to clipboard
open override fun isInScreenBounds(): Boolean

Checks if an element is in screen bounds.

Link copied to clipboard

Place the ArWindow at the quaternion with eye position (0f, 0f, -1f)

fun setEyePosition(qtrn: Quaternion, eyePosition: FloatArray): ArWindow
fun setEyePosition(qtrn: Quaternion, eyeRight: Float, eyeUp: Float, eyeBack: Float): ArWindow

Place the ArWindow at a given eye position relative to the provided quaternion

Link copied to clipboard

Place the ArWindow at the target position relative to user position

Link copied to clipboard
fun setWorldPosition(worldPosition: FloatArray): ArWindow

Sets the ArWindow position in the world coordinate system using the ENU coordinate system

fun setWorldPosition(east: Float, north: Float, up: Float): ArWindow

Place the ArWindow at a given world position ENU coordinate system