/** * Copy constructor. * * @param tuple Tuple. */ public Vector3d(Tuple tuple) { if (tuple is Tuple3d) { Tuple3d _tuple = (Tuple3d)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); } else if (tuple is BuffTuple3d) { BuffTuple3d _tuple = (BuffTuple3d)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); } else { Tuple3d _tuple = new Tuple3d(tuple); this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); } }
public bool EpsilonEquals(Tuple3d other, double epsilon = EPSILON) { return(EpsilonEquals(other.GetX(), other.GetY(), other.GetZ(), epsilon)); }
/** * Copy constructor. * * @param tuple Tuple. */ public Vector3d(Tuple3d tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); this.z = tuple.GetZ(); }
public bool Equals(Tuple3d other) { return(Equals(other.GetX(), other.GetY(), other.GetZ())); }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple3d(Tuple3d tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); this.z = tuple.GetZ(); }
public Environment(Tuple3d gravity, Tuple3d wind) { Gravity = gravity; Wind = wind; }
/// <summary>Constructs and initializes a TexCoord3f from the specified Tuple3d.</summary> /// <remarks>Constructs and initializes a TexCoord3f from the specified Tuple3d.</remarks> /// <param name="t1">the Tuple3d containing the initialization x y z data</param> public TexCoord3f(Tuple3d t1) : base(t1) { }
public static Vector3 toVector3(this Tuple3d v) { return(new Vector3((float)v.x, (float)v.y, (float)v.z)); }