Vector4Base
public struct Vector4Base<VectorType> where VectorType : AddableA 4-dimensional vector.
- 
                  
                  The number of components in a Vector4Baseinstance.DeclarationSwift public static var numberOfComponents: Int { get }
- 
                  
                  The values of the vector. DeclarationSwift public private(set) var components: [VectorType]
- 
                  
                  The x coordinate of the vector (the first component). DeclarationSwift public var x: VectorType { get set }
- 
                  
                  The y coordinate of the vector (the second component). DeclarationSwift public var y: VectorType { get set }
- 
                  
                  The z coordinate of the vector (the third component). DeclarationSwift public var z: VectorType { get set }
- 
                  
                  The w coordinate of the vector (the fourth component). DeclarationSwift public var w: VectorType { get set }
- 
                  
                  Initializse the zero vector. DeclarationSwift public init()
- 
                  
                  Initializes a VectorBasewith the given values.DeclarationSwift public init(x: VectorType, y: VectorType, z: VectorType, w: VectorType)ParametersxThe first component of the vector. yThe second component of the vector. zThe third component of the vector. wThe fourth component of the vector. 
- 
                  
                  Provides access to the underlying components of this instance. DeclarationSwift public subscript(index: Int) -> VectorType { get set }ParametersindexThe index of the component to access. Return ValueThe component at the given index. 
- 
                  
                  The color white. DeclarationSwift public static var white: Vector4Base<Double> { get }
- 
                  
                  The color black. DeclarationSwift public static var black: Vector4Base<Double> { get }
- 
                  
                  The color black with zero alpha. DeclarationSwift public static var clear: Vector4Base<Double> { get }
- 
                  
                  The color red. DeclarationSwift public static var red: Vector4Base<Double> { get }
- 
                  
                  The color green. DeclarationSwift public static var green: Vector4Base<Double> { get }
- 
                  
                  The color blue. DeclarationSwift public static var blue: Vector4Base<Double> { get }
- 
                  
                  The color yellow. DeclarationSwift public static var yellow: Vector4Base<Double> { get }
- 
                  
                  The color magenta. DeclarationSwift public static var magenta: Vector4Base<Double> { get }
- 
                  
                  The color cyan. DeclarationSwift public static var cyan: Vector4Base<Double> { get }
- 
                  
                  The color purple. DeclarationSwift public static var purple: Vector4Base<Double> { get }
- 
                  
                  The color brown. DeclarationSwift public static var brown: Vector4Base<Double> { get }
- 
                  
                  The color orange. DeclarationSwift public static var orange: Vector4Base<Double> { get }
- 
                  
                  The color gray. DeclarationSwift public static var gray: Vector4Base<Double> { get }
- 
                  
                  The color light gray. DeclarationSwift public static var lightGray: Vector4Base<Double> { get }
- 
                  
                  The color dark gray. DeclarationSwift public static var darkGray: Vector4Base<Double> { get }
- 
                  
                  The color dark red. DeclarationSwift public static var darkRed: Vector4Base<Double> { get }
- 
                  
                  The color dark green. DeclarationSwift public static var darkGreen: Vector4Base<Double> { get }
- 
                  
                  The color dark blue. DeclarationSwift public static var darkBlue: Vector4Base<Double> { get }
- 
                  
                  The red component of the vector (equivalent to x). DeclarationSwift public var r: VectorType { get set }
- 
                  
                  The green component of the vector (equivalent to y). DeclarationSwift public var g: VectorType { get set }
- 
                  
                  The blue component of the vector (equivalent to z). DeclarationSwift public var b: VectorType { get set }
- 
                  
                  The alpha component of the vector (equivalent to w). DeclarationSwift public var a: VectorType { get set }
- 
                  
                  The red component of the vector (equivalent to r). DeclarationSwift public var red: VectorType { get set }
- 
                  
                  The green component of the vector (equivalent to g). DeclarationSwift public var green: VectorType { get set }
- 
                  
                  The blue component of the vector (equivalent to b). DeclarationSwift public var blue: VectorType { get set }
- 
                  
                  The blue component of the vector (equivalent to a). DeclarationSwift public var alpha: VectorType { get set }
- 
                  
                  The unit vector in the x direction. DeclarationSwift public static var unitX: Vector4Base<VectorType> { get }
- 
                  
                  The unit vector in the y direction. DeclarationSwift public static var unitY: Vector4Base<VectorType> { get }
- 
                  
                  The unit vector in the z direction. DeclarationSwift public static var unitZ: Vector4Base<VectorType> { get }
- 
                  
                  The unit vector in the w direction. DeclarationSwift public static var unitW: Vector4Base<VectorType> { get }
 Vector4Base Structure Reference
        Vector4Base Structure Reference