using StgSharp; using System; using System.Collections.Generic; using System.Text; namespace StgSharp { public class Line:IGeometry { private ContainerNode _id; internal Point _referencePoint; internal float _vecX; internal float _vecY; public Point ReferencePoint { get { return _referencePoint; } } public float VecX { get { return _vecX; } } public float VecY { get { return _vecY; } } ContainerNode INode.ID { get { return _id; } } public Line( Point referencePoint, float vecX, float vecY) { _referencePoint = referencePoint; _vecX = vecX; _vecY = vecY; } public float SetArrayX(Counter tickCounter) { return 0.0f; } public float SetArrayY(Counter tickCounter) { return 0.0f; } void INode.setID(ContainerNode id) { if (id == null) { _id = id as ContainerNode; } else { throw new ArgumentNullException("Cannot set id teice!"); } } } }