This site has been permanently archived. The content on this site was last updated in 2019.
GVRHeadTransform Class
Stay organized with collections
Save and categorize content based on your preferences.
Defines a class to represent the head transformation for a render frame.
Inherits NSObject.
- (CGRect) viewportForEye: |
|
(GVREye) |
eye |
|
Returns the screen viewport for a given eye.
- (GLKMatrix4) projectionMatrixForEye: |
|
(GVREye) |
eye |
near: |
|
(CGFloat) |
near |
far: |
|
(CGFloat) |
far |
|
|
| |
Returns the projection matrix for the specified eye.
- (GLKMatrix4) eyeFromHeadMatrix: |
|
(GVREye) |
eye |
|
Returns the transformation matrix used to convert from Head Space to Eye Space for the given eye.
- (GLKMatrix4) headPoseInStartSpace |
|
|
|
Returns the reference matrix of the head pose in start space.
Returns the field of view for the specified eye.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGVRHeadTransform\u003c/code\u003e class defines the head transformation for a render frame, inheriting from \u003ccode\u003eNSObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the screen viewport, projection matrix, and field of view for a given eye.\u003c/p\u003e\n"],["\u003cp\u003eThe class also includes methods to obtain the transformation matrix from Head Space to Eye Space and the head pose's reference matrix in start space.\u003c/p\u003e\n"]]],["The `GVRHeadTransform` class manages head transformations for rendering. Key actions include retrieving the screen viewport for a given eye using `viewportForEye:`, obtaining the projection matrix via `projectionMatrixForEye:near:far:`, and getting the head-to-eye space transformation matrix with `eyeFromHeadMatrix:`. It also returns the head pose's reference matrix in start space via `headPoseInStartSpace` and acquires the field of view for a particular eye with `fieldOfViewForEye:`.\n"],null,["# GVRHeadTransform Class\n\n[Instance Methods](#pub-methods) \nGVRHeadTransform Class Reference \n\nOverview\n--------\n\nDefines a class to represent the head transformation for a render frame.\n\nInherits NSObject.\n\n|------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (CGRect) | - [viewportForEye:](/vr/ios/reference/interface_g_v_r_head_transform#af2c7e7d1b17d19dfed25cb32446cafe4) |\n| | Returns the screen viewport for a given eye. [More...](#af2c7e7d1b17d19dfed25cb32446cafe4) |\n| ||\n| (GLKMatrix4) | - [projectionMatrixForEye:near:far:](/vr/ios/reference/interface_g_v_r_head_transform#a5767a6cac64dc0009f8fe998132d3460) |\n| | Returns the projection matrix for the specified eye. [More...](#a5767a6cac64dc0009f8fe998132d3460) |\n| ||\n| (GLKMatrix4) | - [eyeFromHeadMatrix:](/vr/ios/reference/interface_g_v_r_head_transform#adcc7f58c9b132adc9301436a8e0a3c9f) |\n| | Returns the transformation matrix used to convert from Head Space to Eye Space for the given eye. [More...](#adcc7f58c9b132adc9301436a8e0a3c9f) |\n| ||\n| (GLKMatrix4) | - [headPoseInStartSpace](/vr/ios/reference/interface_g_v_r_head_transform#abfb2547e525664b531b9263b9e3b6792) |\n| | Returns the reference matrix of the head pose in start space. [More...](#abfb2547e525664b531b9263b9e3b6792) |\n| ||\n| ([GVRFieldOfView](/vr/ios/reference/struct_g_v_r_field_of_view)) | - [fieldOfViewForEye:](/vr/ios/reference/interface_g_v_r_head_transform#a847a2cfcbcae0d66391fb6204b24f1a2) |\n| | Returns the field of view for the specified eye. [More...](#a847a2cfcbcae0d66391fb6204b24f1a2) |\n| ||\n\nMethod Detail\n-------------\n\n|----------------------------|---|----------|-------|---|\n| - (CGRect) viewportForEye: | | (GVREye) | *eye* | |\n\nReturns the screen viewport for a given eye. \n\n|----------------------------------------|---|-----------|--------|\n| - (GLKMatrix4) projectionMatrixForEye: | | (GVREye) | *eye* |\n| near: | | (CGFloat) | *near* |\n| far: | | (CGFloat) | *far* |\n| | | | |\n\nReturns the projection matrix for the specified eye. \n\n|-----------------------------------|---|----------|-------|---|\n| - (GLKMatrix4) eyeFromHeadMatrix: | | (GVREye) | *eye* | |\n\nReturns the transformation matrix used to convert from Head Space to Eye Space for the given eye. \n\n|-------------------------------------|---|---|---|\n| - (GLKMatrix4) headPoseInStartSpace | | | |\n\nReturns the reference matrix of the head pose in start space. \n\n|---------------------------------------------------------------------------------------|---|----------|-------|---|\n| - ([GVRFieldOfView](/vr/ios/reference/struct_g_v_r_field_of_view)) fieldOfViewForEye: | | (GVREye) | *eye* | |\n\nReturns the field of view for the specified eye."]]