61 lines
1.3 KiB
C#
61 lines
1.3 KiB
C#
using StgSharp;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StgSharp
|
|
{
|
|
public class Line:IGeometry
|
|
{
|
|
private ContainerNode<INode> _id;
|
|
|
|
internal Point _referencePoint;
|
|
internal float _vecX;
|
|
internal float _vecY;
|
|
|
|
public Point ReferencePoint
|
|
{
|
|
get { return _referencePoint; }
|
|
}
|
|
|
|
|
|
|
|
ContainerNode<INode> INode.ID
|
|
{
|
|
get { return _id; }
|
|
}
|
|
|
|
float IGeometry.ExpressionX => throw new NotImplementedException();
|
|
|
|
float IGeometry.ExpressionY => throw new NotImplementedException();
|
|
|
|
public Line( Point referencePoint, float vecX, float vecY)
|
|
{
|
|
_referencePoint = referencePoint;
|
|
_vecX = vecX;
|
|
_vecY = vecY;
|
|
}
|
|
|
|
public float SetArrayX(Counter<uint> tickCounter)
|
|
{
|
|
return 0.0f;
|
|
}
|
|
public float SetArrayY(Counter<uint> tickCounter)
|
|
{
|
|
return 0.0f;
|
|
}
|
|
|
|
void INode.setID<T>(ContainerNode<T> id)
|
|
{
|
|
if (id == null)
|
|
{
|
|
_id = id as ContainerNode<INode>;
|
|
}
|
|
else
|
|
{
|
|
throw new ArgumentNullException("Cannot set id teice!");
|
|
}
|
|
}
|
|
}
|
|
}
|