Skip to content

Commit 19630ba

Browse files
committed
Adjust min/max/clamp node descriptions
1 parent 32fd170 commit 19630ba

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

extensions/2.0/Khronos/KHR_interactivity/Specification.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,18 @@ For `float4x4` arguments, this operation performs per-component multiplication.
473473
| `floatN value` | Smallest of the arguments
474474
|===
475475

476+
For the purposes of this node, negative zero is less than positive zero.
477+
478+
[NOTE]
479+
.Note
480+
====
481+
This is implementable in ECMAScript via the following expression:
482+
[source,js]
483+
----
484+
Math.min(a, b)
485+
----
486+
====
487+
476488
===== Maximum
477489

478490
[cols="1h,1,2"]
@@ -485,6 +497,18 @@ For `float4x4` arguments, this operation performs per-component multiplication.
485497
| `floatN value` | Largest of the arguments
486498
|===
487499

500+
For the purposes of this node, negative zero is less than positive zero.
501+
502+
[NOTE]
503+
.Note
504+
====
505+
This is implementable in ECMAScript via the following expression:
506+
[source,js]
507+
----
508+
Math.max(a, b)
509+
----
510+
====
511+
488512
===== Clamp
489513

490514
[cols="1h,1,2"]
@@ -498,6 +522,8 @@ For `float4x4` arguments, this operation performs per-component multiplication.
498522
| `floatN value` | latexmath:[min(max(a, min(b, c)), max(b, c))]
499523
|===
500524

525+
This node relies on `math/min` and `math/max` nodes defined above.
526+
501527
[NOTE]
502528
.Note
503529
====

0 commit comments

Comments
 (0)