VEX Dictionary / getcomp
getcomp
Extracts one component, row/column entry, or array element from a vector, matrix, or array by index.
group: utilitydata
Available in every context
Usage
float getcomp(<vector> v; int index)
float getcomp(<matrix> m; int row, int column)
<type> getcomp(<type> array[]; int index)
<type> getcomp(<vector> array[]; int i, int j)
<type> getcomp(<matrix> array[]; int i, int j, int k)
<type> getcomp(dict d; string index)
<type>[] getcomp(dict d; string index)
<type> getcomp(dict d; string index; <type> defvalue)
<type>[] getcomp(dict d; string index; <type> defvalue[])
string getcomp(string value, int index)
Examples
No worked examples yet.
Signatures (from vcc -X)
matrix2 getcomp(dict, string)all contextsmatrix2 getcomp(dict, string, matrix2)all contextsmatrix2 getcomp(matrix2[], int)all contextsmatrix3 getcomp(dict, string)all contextsmatrix3 getcomp(dict, string, matrix3)all contextsmatrix3 getcomp(matrix3[], int)all contextsmatrix getcomp(dict, string)all contextsmatrix getcomp(dict, string, matrix)all contextsmatrix getcomp(matrix[], int)all contextsbsdf getcomp(bsdf[], int)all contextslight getcomp(light[], int)displace, fog, light, shadow, surfacelpeaccumulator getcomp(lpeaccumulator[], int)surfacematerial getcomp(material[], int)displace, fog, light, shadow, surfacedict getcomp(dict, string)all contextsdict getcomp(dict, string, dict)all contextsdict getcomp(dict[], int)all contextsfloat getcomp(matrix2, int, int)all contextsfloat getcomp(matrix3, int, int)all contextsfloat getcomp(matrix, int, int)all contextsfloat getcomp(dict, string)all contextsfloat getcomp(dict, string, float)all contextsfloat getcomp(vector4, int)all contextsfloat getcomp(vector2, int)all contextsfloat getcomp(vector, int)all contextsfloat getcomp(matrix2[], int, int, int)all contextsfloat getcomp(matrix3[], int, int, int)all contextsfloat getcomp(matrix[], int, int, int)all contextsfloat getcomp(float[], int)all contextsfloat getcomp(vector4[], int, int)all contextsfloat getcomp(vector2[], int, int)all contextsfloat getcomp(vector[], int, int)all contextsint getcomp(dict, string)all contextsint getcomp(dict, string, int)all contextsint getcomp(int[], int)all contextsvector4 getcomp(dict, string)all contextsvector4 getcomp(dict, string, vector4)all contextsvector4 getcomp(vector4[], int)all contextsstring getcomp(dict, string)all contextsstring getcomp(dict, string, string)all contextsstring getcomp(string, int)all contextsstring getcomp(string[], int)all contextsvector2 getcomp(dict, string)all contextsvector2 getcomp(dict, string, vector2)all contextsvector2 getcomp(vector2[], int)all contextsvector getcomp(dict, string)all contextsvector getcomp(dict, string, vector)all contextsvector getcomp(vector[], int)all contextsdict[] getcomp(dict, string)all contextsdict[] getcomp(dict, string, dict[])all contextsfloat[] getcomp(dict, string)all contextsfloat[] getcomp(dict, string, float[])all contextsint[] getcomp(dict, string)all contextsint[] getcomp(dict, string, int[])all contextsstring[] getcomp(dict, string)all contextsstring[] getcomp(dict, string, string[])all contexts