All Downloads are FREE. Search and download functionalities are using the official Maven repository.

iot.jcypher.query.values.Atan2 Maven / Gradle / Ivy

Go to download

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)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy