/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple2f(Tuple tuple) { if (tuple is Tuple2f) { Tuple2f _tuple = (Tuple2f)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); } else if (tuple is BuffTuple2f) { BuffTuple2f _tuple = (BuffTuple2f)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); } else { Tuple2f _tuple = new Tuple2f(tuple); this.x = _tuple.GetX(); this.y = _tuple.GetY(); } }
/// <summary>Constructs and initializes a Vector2f from the specified Tuple2f.</summary> /// <remarks>Constructs and initializes a Vector2f from the specified Tuple2f.</remarks> /// <param name="t1">the Tuple2f containing the initialization x y data</param> public Vector2f(Tuple2f t1) : base(t1) { }
/// <summary>Constructs and initializes a Point2d from the specified Tuple2f.</summary> /// <remarks>Constructs and initializes a Point2d from the specified Tuple2f.</remarks> /// <param name="t1">the Tuple2f containing the initialization x y data</param> public Point2d(Tuple2f t1) : base(t1) { }
/// <summary>Constructs and initializes a TexCoord2f from the specified Tuple2f.</summary> /// <remarks>Constructs and initializes a TexCoord2f from the specified Tuple2f.</remarks> /// <param name="t1">the Tuple2f containing the initialization x y data</param> public TexCoord2f(Tuple2f t1) : base(t1) { }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple2f(Tuple2f tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); }
public bool EpsilonEquals(Tuple2f other, double epsilon = EPSILON) { return(EpsilonEquals(other.GetX(), other.GetY(), epsilon)); }
public bool Equals(Tuple2f other) { return(Equals(other.GetX(), other.GetY())); }
/// <summary>Constructs and initializes a Tuple2d from the specified Tuple2f.</summary> /// <remarks>Constructs and initializes a Tuple2d from the specified Tuple2f.</remarks> /// <param name="t1">the Tuple2f containing the initialization x y data</param> public Tuple2d(Tuple2f t1) { this.x = (double)t1.x; this.y = (double)t1.y; }
/// <summary>Sets the value of this tuple to the value of Tuple2f t1.</summary> /// <remarks>Sets the value of this tuple to the value of Tuple2f t1.</remarks> /// <param name="t1">the tuple to be copied</param> public void Set(Tuple2f t1) { this.x = (double)t1.x; this.y = (double)t1.y; }
/** * Copy constructor. * * @param tuple Tuple. */ public Vector2f(Tuple2f tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); }