Java Code Examples for org.apache.commons.math3.util.FastMath#toDegrees()
The following examples show how to use
org.apache.commons.math3.util.FastMath#toDegrees() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 2
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 3
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 4
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 5
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 6
Source File: DerivativeStructure.java From astor with GNU General Public License v2.0 | 5 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public DerivativeStructure toDegrees() { final DerivativeStructure ds = new DerivativeStructure(compiler); for (int i = 0; i < ds.data.length; ++i) { ds.data[i] = FastMath.toDegrees(data[i]); } return ds; }
Example 7
Source File: SparseGradient.java From astor with GNU General Public License v2.0 | 4 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public SparseGradient toDegrees() { return new SparseGradient(FastMath.toDegrees(value), FastMath.toDegrees(1.0), derivatives); }
Example 8
Source File: SparseGradient.java From astor with GNU General Public License v2.0 | 4 votes |
/** Convert radians to degrees, with error of less than 0.5 ULP * @return instance converted into degrees */ public SparseGradient toDegrees() { return new SparseGradient(FastMath.toDegrees(value), FastMath.toDegrees(1.0), derivatives); }