using StgSharp; using System; using System.Collections.Generic; using System.Text; namespace StgSharp { public class Triangle : IGeometry { internal ContainerNode _id; internal Point _referencePoint; internal GetLocationHandler _setArrayXHandler; internal GetLocationHandler _setArrayYHandler; public Point ReferencePoint { get { return _referencePoint; } } public float VecX { get { return _referencePoint.X; } } public float VecY { get { return _referencePoint.Y; } } ContainerNode INode.ID { get { return _id; } } public float SetArrayX(Counter tickCounter) { return _setArrayXHandler.Invoke(tickCounter); } public float SetArrayY(Counter tickCounter) { return _setArrayYHandler.Invoke(tickCounter); } void INode.setID(ContainerNode id) { if (id == null) { _id = id as ContainerNode; } else { throw new ArgumentNullException("Cannot set id teice!"); } } } }