AI-generated Key Takeaways
-
The
GVRHeadTransformclass defines the head transformation for a render frame, inheriting fromNSObject. -
It provides methods to retrieve the screen viewport, projection matrix, and field of view for a given eye.
-
The 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.
Overview
Defines a class to represent the head transformation for a render frame.
Inherits NSObject.
Instance Method Summary | |
| (CGRect) | - viewportForEye: |
| Returns the screen viewport for a given eye. More... | |
| (GLKMatrix4) | - projectionMatrixForEye:near:far: |
| Returns the projection matrix for the specified eye. More... | |
| (GLKMatrix4) | - eyeFromHeadMatrix: |
| Returns the transformation matrix used to convert from Head Space to Eye Space for the given eye. More... | |
| (GLKMatrix4) | - headPoseInStartSpace |
| Returns the reference matrix of the head pose in start space. More... | |
| (GVRFieldOfView) | - fieldOfViewForEye: |
| Returns the field of view for the specified eye. More... | |
Method Detail
| - (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.
| - (GVRFieldOfView) fieldOfViewForEye: | (GVREye) | eye |
Returns the field of view for the specified eye.