All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jme3.input.vr.VRTrackedController Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
package com.jme3.input.vr;

import com.jme3.math.Matrix4f;
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;

/**
 * TODO
 * @author Julien Seinturier - COMEX SA - http://www.seinturier.fr
 */
public interface VRTrackedController {
    /**
     * Get the controller name.
     * @return the controller name.
     */
    public String getControllerName();

    /**
     * Get the controller manufacturer.
     * @return the controller manufacturer.
     */
    public String getControllerManufacturer();

    /**
     * Get the position of the tracked device. This value is the translation component of the device {@link #getPose() pose}.
     * @return the position of the tracked device.
     * @see #getOrientation()
     * @see #getPose()
     */
    public Vector3f getPosition();

    /**
     * Get the orientation of the tracked device. This value is the rotation component of the device {@link #getPose() pose}.
     * @return the orientation of the tracked device.
     * @see #getPosition()
     * @see #getPose()
     */
    public Quaternion getOrientation();

    /**
     * Get the pose of the tracked device.
     * The pose is a 4x4 matrix than combine the {@link #getPosition() position} and the {@link #getOrientation() orientation} of the device.
     * @return the pose of the tracked device.
     * @see #getPosition()
     * @see #getOrientation()
     */
    public Matrix4f getPose();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy