Angles to the right of the center and upwards from the center are positive, and angles to the left of the center and down from the center are negative. The total horizontal field of view is angleRight minus angleLeft, and the total vertical field of view is angleUp minus angleDown. For a symmetric FoV, angleRight and angleUp will have positive values, angleLeft will be -angleRight, and angleDown will be -angleUp.
The angles must be specified in radians, and must be between -π/2 and π/2 exclusively.
When angleLeft > angleRight, the content of the view must be flipped horizontally. When angleDown > angleUp, the content of the view must be flipped vertically.
XrCompositionLayerProjectionView, XrExternalCameraIntrinsicsOCULUS, XrSceneFrustumBoundMSFT, XrView, XrViewConfigurationViewFovEPIC
struct XrFovf {
float angleLeft;
float angleRight;
float angleUp;
float angleDown;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrFovf.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ANGLEDOWN
The struct member offsets. |
| public static final int | ANGLELEFT
The struct member offsets. |
| public static final int | ANGLERIGHT
The struct member offsets. |
| public static final int | ANGLEUP
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrFovf(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public XrFovf | |
| public float | |
| public XrFovf | |
| public float | |
| public XrFovf | |
| public float | |
| public XrFovf | |
| public static XrFovf | |
| public static XrFovf. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrFovf | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFovf. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrFovf | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrFovf | |
| public static XrFovf | |
| public static XrFovf. | create(int
the buffer capacity capacity)Returns a new |
| public static XrFovf. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrFovf | |
| public static XrFovf. | |
| public static XrFovf | |
| public static XrFovf. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrFovf | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFovf. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public XrFovf | set(float angleLeft, float angleRight, float angleUp, float angleDown)
Initializes this struct with the specified values. |
| public XrFovf | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ANGLEDOWN | back to summary |
|---|---|
| public static final int ANGLEDOWN The struct member offsets. | |
| ANGLELEFT | back to summary |
|---|---|
| public static final int ANGLELEFT The struct member offsets. | |
| ANGLERIGHT | back to summary |
|---|---|
| public static final int ANGLERIGHT The struct member offsets. | |
| ANGLEUP | back to summary |
|---|---|
| public static final int ANGLEUP The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| XrFovf | back to summary |
|---|---|
| protected XrFovf(long address, ByteBuffer container) | |
| XrFovf | back to summary |
|---|---|
| public XrFovf(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| angleDown | back to summary |
|---|---|
| public float angleDown() the angle of the bottom part of the field of view. For a symmetric field of view this value is negative. | |
| angleDown | back to summary |
|---|---|
| public XrFovf angleDown(float value) Sets the specified value to the | |
| angleLeft | back to summary |
|---|---|
| public float angleLeft() the angle of the left side of the field of view. For a symmetric field of view this value is negative. | |
| angleLeft | back to summary |
|---|---|
| public XrFovf angleLeft(float value) Sets the specified value to the | |
| angleRight | back to summary |
|---|---|
| public float angleRight() the angle of the right side of the field of view. | |
| angleRight | back to summary |
|---|---|
| public XrFovf angleRight(float value) Sets the specified value to the | |
| angleUp | back to summary |
|---|---|
| public float angleUp() the angle of the top part of the field of view. | |
| angleUp | back to summary |
|---|---|
| public XrFovf angleUp(float value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static XrFovf calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrFovf. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFovf calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFovf. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrFovf create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrFovf create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrFovf create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrFovf. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrFovf. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrFovf createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrFovf. Like
| |
| malloc | back to summary |
|---|---|
| public static XrFovf malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrFovf. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFovf malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFovf. Returns a new
| |
| nangleDown | back to summary |
|---|---|
| public static float nangleDown(long struct) Unsafe version of | |
| nangleDown | back to summary |
|---|---|
| public static void nangleDown(long struct, float value) Unsafe version of | |
| nangleLeft | back to summary |
|---|---|
| public static float nangleLeft(long struct) Unsafe version of | |
| nangleLeft | back to summary |
|---|---|
| public static void nangleLeft(long struct, float value) Unsafe version of | |
| nangleRight | back to summary |
|---|---|
| public static float nangleRight(long struct) Unsafe version of | |
| nangleRight | back to summary |
|---|---|
| public static void nangleRight(long struct, float value) Unsafe version of | |
| nangleUp | back to summary |
|---|---|
| public static float nangleUp(long struct) Unsafe version of | |
| nangleUp | back to summary |
|---|---|
| public static void nangleUp(long struct, float value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrFovf set(float angleLeft, float angleRight, float angleUp, float angleDown) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrFovf set(XrFovf src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
XrFovf structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrFovf |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public XrFovf. | |
| public float | |
| public XrFovf. | |
| public float | |
| public XrFovf. | |
| public float | |
| public XrFovf. | |
| protected XrFovf | |
| protected XrFovf. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrFovf ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| angleDown | back to summary |
|---|---|
public float angleDown()
| |
| angleDown | back to summary |
|---|---|
| public XrFovf. Sets the specified value to the | |
| angleLeft | back to summary |
|---|---|
public float angleLeft()
| |
| angleLeft | back to summary |
|---|---|
| public XrFovf. Sets the specified value to the | |
| angleRight | back to summary |
|---|---|
public float angleRight()
| |
| angleRight | back to summary |
|---|---|
| public XrFovf. Sets the specified value to the | |
| angleUp | back to summary |
|---|---|
public float angleUp()
| |
| angleUp | back to summary |
|---|---|
| public XrFovf. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrFovf getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected XrFovf. Implements abstract org.
| |