public Vector3(string str) { str = str.Replace('<', ' '); str = str.Replace('>', ' '); string[] tmps = str.Split(new Char[] { ',', '<', '>' }); if (tmps.Length < 3) { x=y=z=0; return; } bool res; double xx, yy, zz; res = Double.TryParse(tmps[0], NumberStyles.Float, Culture.NumberFormatInfo, out xx); res = res & Double.TryParse(tmps[1], NumberStyles.Float, Culture.NumberFormatInfo, out yy); res = res & Double.TryParse(tmps[2], NumberStyles.Float, Culture.NumberFormatInfo, out zz); x = new LSLFloat(xx); y = new LSLFloat(yy); z = new LSLFloat(zz); }
public Vector3 (OpenMetaverse.Vector3 vector) { x = (float)vector.X; y = (float)vector.Y; z = (float)vector.Z; }
public Vector3 (Vector3 vector) { x = (float)vector.x; y = (float)vector.y; z = (float)vector.z; }
public LSLString(LSLFloat f) { string s = String.Format(Culture.FormatProvider, "{0:0.000000}", f.value); m_string=s; }
public Vector3(OpenMetaverse.Vector3 vector) { x = vector.X; y = vector.Y; z = vector.Z; }
static bool FloatAlmostEqual (LSLFloat valA, LSLFloat valB) { return Math.Abs (valA - valB) <= DoubleDifference; }