| layout | stdlib-reference |
|---|
Vector dot product. Returns the dot product of two vectors.
T dot<T>( T x, T y) where T : __BuiltinFloatingPointType; T dot<T, N:int>( vector<T, N> x, vector<T, N> y) where T : __BuiltinFloatingPointType; T dot<T, N:int>( vector<T, N> x, vector<T, N> y) where T : __BuiltinIntegerType;
T: __BuiltinFloatingPointType {#typeparam-T}
T: __BuiltinIntegerType {#typeparam-T}
x : T {#decl-x}
The first vector.
y : T {#decl-y}
The second vector.
The first vector.
The second vector.
When x and y are scalars, this function is equivalent to x*y.
Defined for the following targets:
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.