MeiCam SDK For iOS  3.10.0
NvsVrUtils.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2023. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Jan 6 . 2023
11 // Author: Meishe video team
12 //================================================================================
13 #pragma once
14 
15 #import <Foundation/Foundation.h>
16 #import "NvsCommonDef.h"
17 
18 NVS_EXPORT @interface NvsVertex3D : NSObject
19  @property(assign) float x;
20  @property(assign) float y;
21  @property(assign) float z;
22 @end
23 NVS_EXPORT @interface NvsVertexSpherical : NSObject
24  @property(assign) float polarAngle;
25  @property(assign) float azimuthAngle;
26 @end
27 
28 NVS_EXPORT @interface NvsVrUtils : NSObject
29 
30 + (NSArray<NvsVertex3D *> *) mapPanoramicVerticesFromLocateToWorldLocateSpcaeRotation:
31  (float)locateSpaceRotaion
32  locateSpaceScale:(NvsPosition2D)locateSpaceScale
33  locateSpaceCenter:(NvsPosition2D)locateSpaceCenter
34  locateVertices:(NSArray<NvsVertexSpherical *> *)locateVertices;
35 
36 + (NSArray<NvsVertexSpherical *> *) mapPanoramicVerticesFromWorldToLocateLocateSpcaeRotation:
37  (float)locateSpaceRotaion
38  locateSpaceScale:(NvsPosition2D)locateSpaceScale
39  locateSpaceCenter:(NvsPosition2D)locateSpaceCenter
40  locateVertices:(NSArray<NvsVertex3D*> *)worldVertices;
41 
42 @end
NvsVertexSpherical
Definition: NvsVrUtils.h:24
NvsVertex3D::y
float y
Definition: NvsVrUtils.h:20
NvsVrUtils
Definition: NvsVrUtils.h:29
NvsVertex3D::x
float x
Definition: NvsVrUtils.h:19
NvsVertex3D::z
float z
Definition: NvsVrUtils.h:21
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsCommonDef.h
NvsPosition2D
2D coordinate structure
Definition: NvsCommonDef.h:344
NvsVertex3D
Definition: NvsVrUtils.h:19