FloatingPointVector
public protocol FloatingPointVector : SignedVectorBase where Self.ComponentType : FloatingPoint
A vector whose components are floating point numbers.
-
length()Default implementationThe length of this vector.
Default Implementation
Declaration
Swift
func length() -> ComponentTypeReturn Value
The length of this vector.
-
unit()Default implementationCalculates a vector parallel to
selfwith length 1.0.Default Implementation
Declaration
Swift
func unit() -> SelfReturn Value
a vector parallel to
selfwith length 1.0. -
Divides two vectors component-wise.
Declaration
Swift
static func / (lhs: Self, rhs: Self) -> Self -
Assigns and divides two vectors component-wise.
Declaration
Swift
static func /= (lhs: inout Self, rhs: Self) -
Divides a vector and a scalar.
Declaration
Swift
static func / (lhs: Self, rhs: ComponentType) -> Self -
Divides a vector and a scalar.
Declaration
Swift
static func / (lhs: ComponentType, rhs: Self) -> Self -
Assigns and divides a vector and a scalar.
Declaration
Swift
static func /= (lhs: inout Self, rhs: ComponentType)
FloatingPointVector Protocol Reference