Camera

public struct Camera : Encodable

Undocumented

  • Up

    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 more

    Declaration

    Swift

    public struct Up : Encodable
  • up

    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 more

    Declaration

    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?
  • Eye

    Sets the (x,y,z) components of the ‘eye’ camera vector.

    This vector determines the view point about the origin of this scene.

    See more

    Declaration

    Swift

    public struct Eye : Encodable
  • eye

    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 more

    Declaration

    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