BNBCameraParameters

Objective-C

@interface BNBCameraParameters : NSObject
- (nonnull instancetype)initWithProjection:(BNBProjectionType)projection
                                     zNear:(float)zNear
                                      zFar:(float)zFar
                                       fov:(float)fov
                                frameWidth:(int32_t)frameWidth
                               frameHeight:(int32_t)frameHeight;
+ (nonnull instancetype)cameraParametersWithProjection:(BNBProjectionType)projection
                                                 zNear:(float)zNear
                                                  zFar:(float)zFar
                                                   fov:(float)fov
                                            frameWidth:(int32_t)frameWidth
                                           frameHeight:(int32_t)frameHeight;

@property (nonatomic, readonly) BNBProjectionType projection;

@property (nonatomic, readonly) float zNear;

@property (nonatomic, readonly) float zFar;

@property (nonatomic, readonly) float fov;

@property (nonatomic, readonly) int32_t frameWidth;

@property (nonatomic, readonly) int32_t frameHeight;

@end

Swift

class BNBCameraParameters : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithProjection:(BNBProjectionType)projection
                                         zNear:(float)zNear
                                          zFar:(float)zFar
                                           fov:(float)fov
                                    frameWidth:(int32_t)frameWidth
                                   frameHeight:(int32_t)frameHeight;

    Swift

    init(projection: BNBProjectionType, zNear: Float, zFar: Float, fov: Float, frameWidth: Int32, frameHeight: Int32)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)cameraParametersWithProjection:(BNBProjectionType)projection
                                                     zNear:(float)zNear
                                                      zFar:(float)zFar
                                                       fov:(float)fov
                                                frameWidth:(int32_t)frameWidth
                                               frameHeight:(int32_t)frameHeight;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BNBProjectionType projection

    Swift

    var projection: BNBProjectionType { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) float zNear

    Swift

    var zNear: Float { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) float zFar

    Swift

    var zFar: Float { get }
  • fov

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) float fov

    Swift

    var fov: Float { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t frameWidth

    Swift

    var frameWidth: Int32 { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t frameHeight

    Swift

    var frameHeight: Int32 { get }