iot.jcypher.query.values.Atan2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcypher Show documentation
Show all versions of jcypher Show documentation
Provides seamlessly integrated Java access to graph databases (Neo4J)
at different levels of abstraction.
The newest version!
package iot.jcypher.query.values;
import iot.jcypher.query.values.functions.FUNCTION;
import iot.jcypher.query.values.operators.OPERATOR;
public class Atan2 {
private JcNumber xVal;
Atan2(JcNumber xval) {
this.xVal = xval;
}
/**
* JCYPHER
* return the arctangent2 of a set of coordinates (x, y), in radians;
* specify the y coordinate, return a JcNumber
*
*/
public JcNumber y(Number yval) {
JcNumber sub = new JcNumber(yval, this.xVal, OPERATOR.Common.COMMA_SEPARATOR);
return new JcNumber(null, sub,
new FunctionInstance(FUNCTION.Math.ATAN2, 2));
}
/**
* JCYPHER
* return the arctangent2 of a set of coordinates (x, y), in radians;
* specify the y coordinate, return a JcNumber
*
*/
public JcNumber y(JcNumber yval) {
JcNumber sub = new JcNumber(yval, this.xVal, OPERATOR.Common.COMMA_SEPARATOR);
return new JcNumber(null, sub,
new FunctionInstance(FUNCTION.Math.ATAN2, 2));
}
}