|
1291 | 1291 | <output name="out" type="vector2" nodename="N_switch_operationorder" /> |
1292 | 1292 | </nodegraph> |
1293 | 1293 |
|
| 1294 | + <!-- |
| 1295 | + Node: <distance> |
| 1296 | + Measures the distance between two points in 2D, 3D, or 4D. |
| 1297 | + --> |
| 1298 | + <nodegraph name="NG_distance_vector2" nodedef="ND_distance_vector2"> |
| 1299 | + <subtract name="N_mtlxsubtract" type="vector2"> |
| 1300 | + <input name="in1" type="vector2" interfacename="in1" /> |
| 1301 | + <input name="in2" type="vector2" interfacename="in2" /> |
| 1302 | + </subtract> |
| 1303 | + <magnitude name="N_mtlxmagnitude" type="float"> |
| 1304 | + <input name="in" type="vector2" nodename="N_mtlxsubtract" /> |
| 1305 | + </magnitude> |
| 1306 | + <output name="out" type="float" nodename="N_mtlxmagnitude" /> |
| 1307 | + </nodegraph> |
| 1308 | + <nodegraph name="NG_distance_vector3" nodedef="ND_distance_vector3"> |
| 1309 | + <subtract name="N_mtlxsubtract" type="vector3"> |
| 1310 | + <input name="in1" type="vector3" interfacename="in1" /> |
| 1311 | + <input name="in2" type="vector3" interfacename="in2" /> |
| 1312 | + </subtract> |
| 1313 | + <magnitude name="N_mtlxmagnitude" type="float"> |
| 1314 | + <input name="in" type="vector3" nodename="N_mtlxsubtract" /> |
| 1315 | + </magnitude> |
| 1316 | + <output name="out" type="float" nodename="N_mtlxmagnitude" /> |
| 1317 | + </nodegraph> |
| 1318 | + <nodegraph name="NG_distance_vector4" nodedef="ND_distance_vector4"> |
| 1319 | + <subtract name="N_mtlxsubtract" type="vector4"> |
| 1320 | + <input name="in1" type="vector4" interfacename="in1" /> |
| 1321 | + <input name="in2" type="vector4" interfacename="in2" /> |
| 1322 | + </subtract> |
| 1323 | + <magnitude name="N_mtlxmagnitude" type="float"> |
| 1324 | + <input name="in" type="vector4" nodename="N_mtlxsubtract" /> |
| 1325 | + </magnitude> |
| 1326 | + <output name="out" type="float" nodename="N_mtlxmagnitude" /> |
| 1327 | + </nodegraph> |
| 1328 | + |
1294 | 1329 | <!-- ======================================================================== --> |
1295 | 1330 | <!-- Adjustment nodes --> |
1296 | 1331 | <!-- ======================================================================== --> |
|
0 commit comments