Beispiel #1
0
	static public SsPoint[] CreateArray(int num)
	{
		var a = new SsPoint[num];
		for (int i = 0; i < a.Length; ++i)
			a[i] = new SsPoint();
		return a;
	}
Beispiel #2
0
 public SsVertexKeyValue(int verticesNum)
 {
     if (verticesNum > 0)
     {
         Vertices = SsPoint.CreateArray(verticesNum);
     }
 }
Beispiel #3
0
    static public SsPoint[] CreateArray(int num)
    {
        var a = new SsPoint[num];

        for (int i = 0; i < a.Length; ++i)
        {
            a[i] = new SsPoint();
        }
        return(a);
    }
Beispiel #4
0
 public SsUserDataKeyValue(SsUserDataKeyValue r)
 {
     IsNum       = r.IsNum;
     Num         = r.Num;
     IsRect      = r.IsRect;
     this.Rect   = r.Rect.Clone();
     IsPoint     = r.IsPoint;
     this.Point  = r.Point.Clone();
     IsString    = r.IsString;
     this.String = System.String.Copy(r.String);
 }
Beispiel #5
0
 _GetPoint(
     SsPoint o,
     XmlNode n,
     string path)
 {
     if (path != null)
     {
         n = _SelectSingleNode(n, path);
     }
     o.X = _ToInt(_GetNodeValue(n, "./cur:X"));
     o.Y = _ToInt(_GetNodeValue(n, "./cur:Y"));
 }
Beispiel #6
0
	public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime)
	{
		var v = new SsPoint();
		return v.Interpolate(curve, time, start, end, startTime, endTime);
	}
Beispiel #7
0
	public SsPoint(SsPoint r)
	{
		X = r.X;
		Y = r.Y;
	}
Beispiel #8
0
 _GetPoint(SsPoint o, XmlNode n)
 {
     _GetPoint(o, n, null);
 }
Beispiel #9
0
    public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime)
    {
        var v = new SsPoint();

        return(v.Interpolate(curve, time, start, end, startTime, endTime));
    }
Beispiel #10
0
 public SsPoint(SsPoint r)
 {
     X = r.X;
     Y = r.Y;
 }