Vector3
public struct Vector3
A vector with 3 components.
-
Creates a vector for which all components are equal to the given scalar.
Declaration
Swift
public init(scalar: Scalar)
-
The number of scalar components in this vector type.
Declaration
Swift
public static var length: Int
-
The empty vector (all scalar components are equal to
0.0
).Declaration
Swift
public static var zero: Vector3
-
Interpolate between the given values.
Declaration
Swift
public func interpolated(to otherValue: Vector3, alpha: Scalar) -> Vector3
-
Interpolate between the given values.
Declaration
Swift
public mutating func interpolate(to otherValue: Vector3, alpha: Scalar)
-
Declaration
Swift
public func clamped(min: Vector3, max: Vector3) -> Vector3
-
Equatable.
Declaration
Swift
public static func ==(lhs: Vector3, rhs: Vector3) -> Bool
-
Product.
Declaration
Swift
public static func *(lhs: Vector3, rhs: Vector3) -> Vector3
-
Product (in place).
Declaration
Swift
public static func *=(lhs: inout Vector3, rhs: Vector3)
-
Quotient
Declaration
Swift
public static func /(lhs: Vector3, rhs: Vector3) -> Vector3
-
Quotient (in place).
Declaration
Swift
public static func /=(lhs: inout Vector3, rhs: Vector3)
-
Sum.
Declaration
Swift
public static func +(lhs: Vector3, rhs: Vector3) -> Vector3
-
Sum (in place).
Declaration
Swift
public static func +=(lhs: inout Vector3, rhs: Vector3)
-
Difference.
Declaration
Swift
public static func -(lhs: Vector3, rhs: Vector3) -> Vector3
-
Difference (in place).
Declaration
Swift
public static func -=(lhs: inout Vector3, rhs: Vector3)
-
Scalar-Vector product.
Declaration
Swift
public static func *(lhs: Scalar, rhs: Vector3) -> Vector3