public static BrAngle FromRadians(BrScalar r) { return(FromScalar(r * (0.5f / BrScalar.PI))); }
public static BrAngle FromDegrees(BrScalar d) { return(FromScalar(d / 360f)); }
public static BrAngle AngleRadians(BrScalar rad) { return(new BrAngle((ushort)(rad * 10430))); }
public static BrAngle FromScalar(BrScalar s) { return(new BrAngle((ushort)s.ToFixed())); }
public BrScalar ToRadians() { return(BrScalar.Multiply(BrScalar.FromFixed(value), BrScalar.FromInt(2) * BrScalar.PI)); }
public static BrAngle AngleDegrees(BrScalar deg) { return(new BrAngle((ushort)(deg * 182))); }
public BrScalar ToDegrees() { return(BrScalar.Multiply(BrScalar.FromFixed(value), BrScalar.FromInt(360))); }
public BrVertex(BrScalar x, BrScalar y, BrScalar z, BrScalar u, BrScalar v) : this() { Position = new BrVector3(x, y, z); TextureCoordinate = new BrVector2(u, v); }
public BrScalar ToScalar() { return(BrScalar.FromFixed(value * 2)); }
public static BrFraction FromFloat(float value) { return(FromScalar(BrScalar.FromFloat(value))); }
public static BrFraction FromScalar(BrScalar scalar) { return(new BrFraction((short)(scalar.ToFixed() / 2))); }