VectorReal
public protocol VectorReal : VectorFloatingPoint where Self.Scalar : Real
Protocol for vector types where the components are real numbers.
-
pow(_:
Default implementation_: ) Returns the result of powering each component of this vector by the Nth power specified by
exponent
(integer).Default Implementation
Declaration
Swift
static func pow(_ vec: Self, _ exponent: Int) -> Self
-
Returns the result of powering each component of this vector by the Nth power specified by
exponent
.Precondition
vec >= Self.zero
Declaration
Swift
static func pow(_ vec: Self, _ exponent: Scalar) -> Self
-
Returns the result of powering each component of this vector by the Nth power represented by each corresponding component of the
exponent
vector.Precondition
vec >= Self.zero
Declaration
Swift
static func pow(_ vec: Self, _ exponent: Self) -> Self