struct vector<T, N:int>
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
- operator$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
Conformance to IDifferentiable
vector<T, N:int>
additionally conforms toIDifferentiable
when the following conditions are met: - T : IDifferentiable
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == half
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == float
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == int
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == uint
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == int8_t
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == int16_t
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == uint8_t
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == uint16_t
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == double
- N == 2
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == uint64_t
- N == 2
Conformance to ITexelElement
vector<T, N:int>
additionally conforms toITexelElement
when the following conditions are met: - T == int64_t
- N == 2