Here you can find the source of radiansToBrads(double angleRadians)
public static byte radiansToBrads(double angleRadians)
//package com.java2s; //License from project: Open Source License public class Main { /** Converts angle in radians to angle in binary radians **/ public static byte radiansToBrads(double angleRadians) { return (byte) Math.round(angleRadians * 128 / Math.PI); }/*from w w w . j a v a 2 s. co m*/ }