struct vector<T, int N>
Conditionally conforms to: IInteger, IFloat, IDifferentiable, ITexelElement
Description
An N component vector with elements of type T.
Generic Parameters
T = float
N : int = 4
Fields
elementCount : int = 2
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, int N> additionally conforms to IInteger when the following conditions are met:
- T : __BuiltinIntegerType
                Conformance to IFloatvector<T, int N>additionally conforms toIFloatwhen the following conditions are met:
- T : __BuiltinFloatingPointType
                Conformance to IDifferentiablevector<T, int N>additionally conforms toIDifferentiablewhen the following conditions are met:
- T : IDifferentiable
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == half
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == float
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == int
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == uint
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == int8_t
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == int16_t
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == uint8_t
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == uint16_t
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == double
- N == 2
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == uint64_t
- N == 2
                Conformance to ITexelElementvector<T, int N>additionally conforms toITexelElementwhen the following conditions are met:
- T == int64_t
- N == 2