VectorMathCapable
public protocol VectorMathCapable
Conforming types implement functions for basic vector arithmetic.
-
Product.
Declaration
Swift
func *(lhs: Self, rhs: Self) -> Self
-
Product (in place).
Declaration
Swift
func *=(inout lhs: Self, rhs: Self)
-
Quotient.
Declaration
Swift
func /(lhs: Self, rhs: Self) -> Self
-
Quotient (in place).
Declaration
Swift
func /=(inout lhs: Self, rhs: Self)
-
Sum.
Declaration
Swift
func +(lhs: Self, rhs: Self) -> Self
-
Sum (in place).
Declaration
Swift
func +=(inout lhs: Self, rhs: Self)
-
Difference.
Declaration
Swift
func -(lhs: Self, rhs: Self) -> Self
-
Difference (in place).
Declaration
Swift
func -=(inout lhs: Self, rhs: Self)
-
Scalar-Vector product.
Declaration
Swift
func *(lhs: Scalar, rhs: Self) -> Self