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