struct vector<T, N:int>
Conditionally conforms to: IInteger, IFloat
Description
An N component vector with elements of type T.
Generic Parameters
T = float
N : int = 4
Methods
- getCount
- shl
- shr
- bitAnd
- bitOr
- bitXor
- bitNot
- and
- or
- not
- toInt
- toInt64
- toUInt
- toUInt64
- lessThan
- lessThanOrEquals
- equals
- add
- sub
- mul
- div
- mod
- neg
- scale
- toFloat
- dzero
- dadd
- dmul
- init
Conditional Conformances
Conformance to IInteger
vector<T, N:int>
additionally conforms to IInteger
when the following conditions are met:
- T : __BuiltinIntegerType
Conformance to IFloat
vector<T, N:int>
additionally conforms toIFloat
when the following conditions are met: - T : __BuiltinFloatingPointType