public override bool Equals(object obj) { // If parameter cannot be cast to ThreeDPoint return false: PointEmitterType p = obj as PointEmitterType; if (p == null) { return(false); } return(base.Equals(obj) && pt.Equals(p.pt)); }
public bool Equals(PointEmitterType p) { return(base.Equals(p) && pt.Equals(p.pt)); }
// Copy Constructor public PointEmitterType(PointEmitterType p) : base(p.continuousFlow, p.creationRate, p.numAgents, p.velocityMin, p.velocityMax) { pt = p.pt; }
public bool Equals(PointEmitterType p) { return base.Equals(p) && pt.Equals(p.pt); }
protected override void SetOutputs(IGH_DataAccess da) { AbstractEmitterType emitterPt = new PointEmitterType(pt, continuousFlow, creationRate, numAgents, velocityMin, velocityMax); da.SetData(nextOutputIndex++, emitterPt); }