distance returns the distance between the two points p0 and p1. i.e.,
length(p0 - p1);
p0
Type: float
p1
Type: float
Type: float
JSON
{
"Type": "distance(float,float)",
"Name": "distance(float,float)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "p0",
"Type": "float"
},
{
"Connection": null,
"Id": "p1",
"Type": "float"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
p0
Type: vec2
p1
Type: vec2
Type: float
JSON
{
"Type": "distance(vec2,vec2)",
"Name": "distance(vec2,vec2)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "p0",
"Type": "vec2"
},
{
"Connection": null,
"Id": "p1",
"Type": "vec2"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
p0
Type: vec3
p1
Type: vec3
Type: float
JSON
{
"Type": "distance(vec3,vec3)",
"Name": "distance(vec3,vec3)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "p0",
"Type": "vec3"
},
{
"Connection": null,
"Id": "p1",
"Type": "vec3"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
p0
Type: vec4
p1
Type: vec4
Type: float
JSON
{
"Type": "distance(vec4,vec4)",
"Name": "distance(vec4,vec4)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "p0",
"Type": "vec4"
},
{
"Connection": null,
"Id": "p1",
"Type": "vec4"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}