Vector3

public struct Vector3 : Deserializable
extension Vector3: Position
extension Vector3: Focusable
extension Vector3: Equatable

Representation of a 3D Vector

  • Represent Vector3 as a Vector2, This is done by discarding the z component of the vector

    Declaration

    Swift

    public let vector2: Vector2
  • x

    The x component of a vector, the first component

    Declaration

    Swift

    public var x: Float { get }
  • y

    The y component of a vector, the first component

    Declaration

    Swift

    public var y: Float { get }
  • z

    The z component of a vector, the first component

    Declaration

    Swift

    public let z: Float
  • Initialize a vector with the supplied x, y, & z components

    Declaration

    Swift

    public init(_ x: Float, _ y: Float, _ z: Float)
  • Initialize a vector with the supplied x, y, & z components

    Declaration

    Swift

    public init(x: Float, y: Float, z: Float)
  • Initialize a vector with the supplied x, y, & z components

    Declaration

    Swift

    public init(_ v: SCNVector3)
  • Declaration

    Swift

    static var expectedSize: Int { get }