GetYCoordinate: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 17: Zeile 17:
==== Standardfälle ====
==== Standardfälle ====
  getYCoordinate(coordinate(15.3, 5)) -> 5
  getYCoordinate(coordinate(15.3, 5)) -> 5
 
  getYCoordinate(coordinate(2 + 3, 4 * 5)) -> 20
  getYCoordinate(coordinate(2 + 3, 4 * 5)) -> 20
 
  getYCoordinate(coordinate(sin(0), cos(0))) -> 1
  getYCoordinate(coordinate(sin(0), cos(0))) -> 1
 
  getYCoordinate(coordinate(-10.1, -2.5)) -> -2.5
  getYCoordinate(coordinate(-10.1, -2.5)) -> -2.5



Version vom 29. April 2026, 10:45 Uhr

Zugehörige Evaluatoren

  • MathEvaluator

Beschreibung

Die Funktion gibt die y-Koordinate einer Coordinate zurück.

Syntax

getYCoordinate(coordinate(zahl1, zahl2))

Parameter

  • coordinate- Die Koordinate, welche auf Basis von Coordinate erstellt wird.

Return Value

Eine Zahl, welche den gleichen Typ der Y-Koordinate hat.

Beispiele

Standardfälle

getYCoordinate(coordinate(15.3, 5)) -> 5

getYCoordinate(coordinate(2 + 3, 4 * 5)) -> 20

getYCoordinate(coordinate(sin(0), cos(0))) -> 1

getYCoordinate(coordinate(-10.1, -2.5)) -> -2.5

Rechteck

rectangle(coordinate(337.2016,598.7596),coordinate(437.2016,648.7596)
getYCoordinate([input=draggable1])>648.7596     -> gibt true zurück, wenn der Punkt unter dem Rechteck gesetzt wurde
getYCoordinate([input=draggable1])<598.7596     -> gibt true zurück, wenn der Punkt über dem Rechteck gesetzt wurde

Hinweise

  • Die Koordinate wird ab der 15. Nachkommastelle gerundet.
  • Ähnliche Funktion: GetXCoordinate