dot returns the dot product of two vectors, x and y. i.e., ( x[0]*y[0] + x[1]*y[1] + ... )
x Type: float y Type: float
Type: float
JSON
{
"Type": "dot(float,float)",
"Name": "dot(float,float)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "float"
},
{
"Connection": null,
"Id": "y",
"Type": "float"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec2 y Type: vec2
Type: float
JSON
{
"Type": "dot(vec2,vec2)",
"Name": "dot(vec2,vec2)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec2"
},
{
"Connection": null,
"Id": "y",
"Type": "vec2"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec3 y Type: vec3
Type: float
JSON
{
"Type": "dot(vec3,vec3)",
"Name": "dot(vec3,vec3)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec3"
},
{
"Connection": null,
"Id": "y",
"Type": "vec3"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec4 y Type: vec4
Type: float
JSON
{
"Type": "dot(vec4,vec4)",
"Name": "dot(vec4,vec4)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec4"
},
{
"Connection": null,
"Id": "y",
"Type": "vec4"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}