File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -752,37 +752,37 @@ Unless the type of hue interpolation is ''specified'', both angles need to be co
752752One way to do this is <code><i> θ</i> = ((<i> θ</i> % 360) + 360) % 360</code> .
753753
754754: ''shorter''
755- :: Angles are adjusted so that θ₂ - θ₁ ∈ [0 , 180) . In pseudo-Javascript:
755+ :: Angles are adjusted so that θ₂ - θ₁ ∈ [-180 , 180] . In pseudo-Javascript:
756756 <pre>
757- if (θ₂ - θ₁ >= 180) {
757+ if (θ₂ - θ₁ > 180) {
758758 θ₁ += 360;
759759 }
760- else if (θ₂ - θ₁ <= -180) {
760+ else if (θ₂ - θ₁ < -180) {
761761 θ₂ += 360;
762762 }
763763 </pre>
764764
765765: ''longer''
766- :: Angles are adjusted so that θ₂ - θ₁ ∈ [180, 360). In pseudo-Javascript:
766+ :: Angles are adjusted so that | θ₂ - θ₁| ∈ {0, [180, 360)} . In pseudo-Javascript:
767767 <pre>
768768 if (0 < θ₂ - θ₁ < 180) {
769- θ₁ += 360;
769+ θ₁ += 360;
770770 }
771771 else if (-180 < θ₂ - θ₁ < 0) {
772- θ₂ += 360;
772+ θ₂ += 360;
773773 }
774774 </pre>
775775
776776: ''increasing''
777- :: Angles are adjusted so that θ₂ - θ₁ ∈ [0, 360) and θ₁ ≤ θ₂ . In pseudo-Javascript:
777+ :: Angles are adjusted so that θ₂ - θ₁ ∈ [0, 360). In pseudo-Javascript:
778778 <pre>
779779 if (θ₂ < θ₁) {
780780 θ₂ += 360;
781781 }
782782 </pre>
783783
784784: ''decreasing''
785- :: Angles are adjusted so that θ₂ - θ₁ ∈ [0, 360) and θ₁ ≥ θ₂ . In pseudo-Javascript:
785+ :: Angles are adjusted so that θ₂ - θ₁ ∈ (-360, 0] . In pseudo-Javascript:
786786 <pre>
787787 if (θ₁ < θ₂) {
788788 θ₁ += 360;
You can’t perform that action at this time.
0 commit comments