Camera
public struct Camera : Encodable
Undocumented
-
Sets the (x,y,z) components of the ‘up’ camera vector.
This vector determines the up direction of this scene with respect to the page. The default is {x: 0, y: 0, z: 1} which means that the z axis points up.
See moreDeclaration
Swift
public struct Up : Encodable
-
Sets the (x,y,z) components of the ‘up’ camera vector.
This vector determines the up direction of this scene with respect to the page. The default is {x: 0, y: 0, z: 1} which means that the z axis points up.
Declaration
Swift
public var up: Up?
-
Sets the (x,y,z) components of the ‘center’ camera vector This vector determines the translation (x,y,z) space about the center of this scene.
By default, there is no such translation.
See moreDeclaration
Swift
public struct Center : Encodable
-
Sets the (x,y,z) components of the ‘center’ camera vector This vector determines the translation (x,y,z) space about the center of this scene.
By default, there is no such translation.
Declaration
Swift
public var center: Center?
-
Sets the (x,y,z) components of the ‘eye’ camera vector.
This vector determines the view point about the origin of this scene.
See moreDeclaration
Swift
public struct Eye : Encodable
-
Sets the (x,y,z) components of the ‘eye’ camera vector.
This vector determines the view point about the origin of this scene.
Declaration
Swift
public var eye: Eye?
-
Undocumented
See moreDeclaration
Swift
public struct Projection : Encodable
-
Undocumented
Declaration
Swift
public var projection: Projection?
-
Creates
Camera
object with specified properties.Declaration
Swift
public init(up: Up? = nil, center: Center? = nil, eye: Eye? = nil, projection: Projection? = nil)
Parameters
up
Sets the (x,y,z) components of the ‘up’ camera vector.
center
Sets the (x,y,z) components of the ‘center’ camera vector This vector determines the translation (x,y,z) space about the center of this scene.
eye
Sets the (x,y,z) components of the ‘eye’ camera vector.
projection