# Enum VREye

java.lang.Object
java.lang.Enum<VREye>
com.codename1.vr.VREye

All Implemented Interfaces:
  `Comparable<VREye>`

public enum VREye extends Enum<VREye>
Identifies which eye a `VRRenderer` frame is being rendered for.

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `CENTER`
  The single centered viewpoint used in mono mode.
  `LEFT`
  The left eye in stereo mode.
  `RIGHT`
  The right eye in stereo mode.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `offsetSign()`
  The sign of this eye's horizontal offset from the head center: `-1` for `LEFT`, `1` for `RIGHT`, `0` for `CENTER`.
  `static VREye`
  `valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static VREye[]`
  `values()`
  Returns an array containing the constants of this enum type, in the order they are declared.

  ### Methods inherited from class Enum

  `clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf`

  ### Methods inherited from class Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### LEFT

    public static final VREye LEFT
    The left eye in stereo mode. Offset half the interpupillary distance to the left of the head center.

  - ### RIGHT

    public static final VREye RIGHT
    The right eye in stereo mode. Offset half the interpupillary distance to the right of the head center.

  - ### CENTER

    public static final VREye CENTER
    The single centered viewpoint used in mono mode.

- ## Method Details

  - ### values

    public static VREye[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.
    Returns:
      an array containing the constants of this enum type, in the order they are declared

  - ### valueOf

    public static VREye valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
      `name` - the name of the enum constant to be returned.
    Returns:
      the enum constant with the specified name
    Throws:
      `IllegalArgumentException` - if this enum type has no constant with the specified name
      `NullPointerException` - if the argument is null

  - ### offsetSign

    public int offsetSign()
    The sign of this eye's horizontal offset from the head center: `-1` for `LEFT`, `1` for `RIGHT`, `0` for `CENTER`.