public Vector2d(Vector3 vec) { this.x = FixedMath.Create(vec.x); this.y = FixedMath.Create(vec.z); }
public Vector2d(double xDoub, double yDoub) { this.x = FixedMath.Create(xDoub); this.y = FixedMath.Create(yDoub); }
public Vector3 ToVector3(float z = 0f) { return(new Vector3((float)FixedMath.ToDouble(this.x), z, (float)FixedMath.ToDouble(this.y))); }
public Vector2d(float xFloat, float yFloat) { this.x = FixedMath.Create(xFloat); this.y = FixedMath.Create(yFloat); }
public Vector2d(Vector2 vec2) { this.x = FixedMath.Create(vec2.x); this.y = FixedMath.Create(vec2.y); }
public long z; //Height public Vector3d(Vector3 vec3) { this.x = FixedMath.Create(vec3.x); this.y = FixedMath.Create(vec3.z); this.z = FixedMath.Create(vec3.y); }
public static long Cos(long theta) { long sin = Sin(theta); return(FixedMath.Sqrt(FixedMath.One - (sin.Mul(sin)))); }
public static double ToFormattedDouble(this long f1) { return(Math.Round(FixedMath.ToDouble(f1), 2, MidpointRounding.AwayFromZero)); }