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