749 lines
27 KiB
C#
749 lines
27 KiB
C#
using System.Linq.Expressions;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Xml.Serialization;
|
|
using Microsoft.CSharp.RuntimeBinder;
|
|
|
|
namespace ShrlAlgoToolkit.RevitAddins.RvIndependent.MetroGauges.LandXMLData;
|
|
|
|
[XmlType("Spiral")]
|
|
[Serializable]
|
|
public class Spiral : Interval
|
|
{
|
|
public Spiral()
|
|
{
|
|
_points = new List<TextPoint2D>(3) { new TextPoint2D(), new TextPoint2D(), new TextPoint2D() };
|
|
}
|
|
|
|
public Spiral(Spiral entity)
|
|
: this()
|
|
{
|
|
Length = entity.Length;
|
|
TanShort = entity.TanShort;
|
|
TanLong = entity.TanLong;
|
|
TotalX = entity.TotalX;
|
|
TotalY = entity.TotalY;
|
|
Dir = entity.Dir;
|
|
RadiusStart = entity.RadiusStart;
|
|
RadiusEnd = entity.RadiusEnd;
|
|
Rot = entity.Rot;
|
|
SpiType = entity.SpiType;
|
|
Start = entity.Start;
|
|
End = entity.End;
|
|
PI = entity.PI;
|
|
}
|
|
|
|
public Spiral(dynamic entity, dynamic baseline, dynamic profile)
|
|
: this()
|
|
{
|
|
Contructor.p__Site1 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target = Contructor.p__Site1.Target;
|
|
CallSite p__Site = Contructor.p__Site1;
|
|
Contructor.p__Site2 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"Length",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Length = target(p__Site, Contructor.p__Site2.Target(Contructor.p__Site2, entity));
|
|
Contructor.p__Site3 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target2 = Contructor.p__Site3.Target;
|
|
CallSite p__Site2 = Contructor.p__Site3;
|
|
Contructor.p__Site4 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"ShortTangent",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
TanShort = target2(p__Site2, Contructor.p__Site4.Target(Contructor.p__Site4, entity));
|
|
Contructor.p__Site5 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target3 = Contructor.p__Site5.Target;
|
|
CallSite p__Site3 = Contructor.p__Site5;
|
|
Contructor.p__Site6 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"LongTangent",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
TanLong = target3(p__Site3, Contructor.p__Site6.Target(Contructor.p__Site6, entity));
|
|
Contructor.p__Site7 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target4 = Contructor.p__Site7.Target;
|
|
CallSite p__Site4 = Contructor.p__Site7;
|
|
Contructor.p__Site8 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"TotalX",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
TotalX = target4(p__Site4, Contructor.p__Site8.Target(Contructor.p__Site8, entity));
|
|
Contructor.p__Site9 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target5 = Contructor.p__Site9.Target;
|
|
CallSite p__Site5 = Contructor.p__Site9;
|
|
Contructor.p__Sitea ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"TotalY",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
TotalY = target5(p__Site5, Contructor.p__Sitea.Target(Contructor.p__Sitea, entity));
|
|
Contructor.p__Siteb ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target6 = Contructor.p__Siteb.Target;
|
|
CallSite p__Siteb = Contructor.p__Siteb;
|
|
Contructor.p__Sitec ??= CallSite<Func<CallSite, object, double, object>>.Create(
|
|
Binder.BinaryOperation(
|
|
CSharpBinderFlags.None,
|
|
ExpressionType.Divide,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, double, object> target7 = Contructor.p__Sitec.Target;
|
|
CallSite p__Sitec = Contructor.p__Sitec;
|
|
Contructor.p__Sited ??= CallSite<Func<CallSite, object, double, object>>.Create(
|
|
Binder.BinaryOperation(
|
|
CSharpBinderFlags.None,
|
|
ExpressionType.Multiply,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, double, object> target8 = Contructor.p__Sited.Target;
|
|
CallSite p__Sited = Contructor.p__Sited;
|
|
Contructor.p__Sitee ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"Direction",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Dir = target6(p__Siteb, target7(p__Sitec, target8(p__Sited, Contructor.p__Sitee.Target(Contructor.p__Sitee, entity), 180.0), 3.1415926535897931));
|
|
Contructor.p__Sitef ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target9 = Contructor.p__Sitef.Target;
|
|
CallSite p__Sitef = Contructor.p__Sitef;
|
|
Contructor.p__Site10 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"RadiusIn",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
RadiusStart = target9(p__Sitef, Contructor.p__Site10.Target(Contructor.p__Site10, entity));
|
|
Contructor.p__Site11 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target10 = Contructor.p__Site11.Target;
|
|
CallSite p__Site6 = Contructor.p__Site11;
|
|
Contructor.p__Site12 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"RadiusOut",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
RadiusEnd = target10(p__Site6, Contructor.p__Site12.Target(Contructor.p__Site12, entity));
|
|
Contructor.p__Site13 ??= CallSite<Func<CallSite, object, bool>>.Create(
|
|
Binder.UnaryOperation(
|
|
CSharpBinderFlags.None,
|
|
ExpressionType.IsTrue,
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, bool> target11 = Contructor.p__Site13.Target;
|
|
CallSite p__Site7 = Contructor.p__Site13;
|
|
Contructor.p__Site14 ??= CallSite<Func<CallSite, object, int, object>>.Create(
|
|
Binder.BinaryOperation(
|
|
CSharpBinderFlags.None,
|
|
ExpressionType.Equal,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, int, object> target12 = Contructor.p__Site14.Target;
|
|
CallSite p__Site8 = Contructor.p__Site14;
|
|
Contructor.p__Site15 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"Direction",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Rot = target11(p__Site7, target12(p__Site8, Contructor.p__Site15.Target(Contructor.p__Site15, entity), 0)) ? "ccw" : "cw";
|
|
Contructor.p__Site16 ??= CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, string> target13 = Contructor.p__Site16.Target;
|
|
CallSite p__Site9 = Contructor.p__Site16;
|
|
Contructor.p__Site17 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"ToString",
|
|
null,
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, object> target14 = Contructor.p__Site17.Target;
|
|
CallSite p__Site10 = Contructor.p__Site17;
|
|
Contructor.p__Site18 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"SpiralType",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
SpiType = target13(p__Site9, target14(p__Site10, Contructor.p__Site18.Target(Contructor.p__Site18, entity)));
|
|
Contructor.p__Site19 ??= CallSite<Func<CallSite, object, double[], object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"StationOffsetElevationToXYZ",
|
|
null,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, double[], object> target15 = Contructor.p__Site19.Target;
|
|
CallSite p__Site11 = Contructor.p__Site19;
|
|
double[] array = new double[3];
|
|
double[] array2 = array;
|
|
int num = 0;
|
|
Contructor.p__Site1a ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target16 = Contructor.p__Site1a.Target;
|
|
CallSite p__Site1a = Contructor.p__Site1a;
|
|
Contructor.p__Site1b ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"StartingStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array2[num] = target16(p__Site1a, Contructor.p__Site1b.Target(Contructor.p__Site1b, entity));
|
|
double[] array3 = array;
|
|
int num2 = 2;
|
|
Contructor.p__Site1c ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target17 = Contructor.p__Site1c.Target;
|
|
CallSite p__Site1c = Contructor.p__Site1c;
|
|
Contructor.p__Site1d ??= CallSite<Func<CallSite, object, object, object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"ElevationAt",
|
|
null,
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, object, object> target18 = Contructor.p__Site1d.Target;
|
|
CallSite p__Site1d = Contructor.p__Site1d;
|
|
Contructor.p__Site1e ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"StartingStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array3[num2] = target17(p__Site1c, target18(p__Site1d, profile, Contructor.p__Site1e.Target(Contructor.p__Site1e, entity)));
|
|
object obj = target15(p__Site11, baseline, array);
|
|
Contructor.p__Site1f ??= CallSite<Func<CallSite, object, double[], object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"StationOffsetElevationToXYZ",
|
|
null,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, double[], object> target19 = Contructor.p__Site1f.Target;
|
|
CallSite p__Site1f = Contructor.p__Site1f;
|
|
double[] array4 = new double[3];
|
|
double[] array5 = array4;
|
|
int num3 = 0;
|
|
Contructor.p__Site20 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target20 = Contructor.p__Site20.Target;
|
|
CallSite p__Site12 = Contructor.p__Site20;
|
|
Contructor.p__Site21 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"EndingStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array5[num3] = target20(p__Site12, Contructor.p__Site21.Target(Contructor.p__Site21, entity));
|
|
double[] array6 = array4;
|
|
int num4 = 2;
|
|
Contructor.p__Site22 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target21 = Contructor.p__Site22.Target;
|
|
CallSite p__Site13 = Contructor.p__Site22;
|
|
Contructor.p__Site23 ??= CallSite<Func<CallSite, object, object, object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"ElevationAt",
|
|
null,
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, object, object> target22 = Contructor.p__Site23.Target;
|
|
CallSite p__Site14 = Contructor.p__Site23;
|
|
Contructor.p__Site24 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"EndingStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array6[num4] = target21(p__Site13, target22(p__Site14, profile, Contructor.p__Site24.Target(Contructor.p__Site24, entity)));
|
|
object obj2 = target19(p__Site1f, baseline, array4);
|
|
Contructor.p__Site25 ??= CallSite<Func<CallSite, object, double[], object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"StationOffsetElevationToXYZ",
|
|
null,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, double[], object> target23 = Contructor.p__Site25.Target;
|
|
CallSite p__Site15 = Contructor.p__Site25;
|
|
double[] array7 = new double[3];
|
|
double[] array8 = array7;
|
|
int num5 = 0;
|
|
Contructor.p__Site26 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target24 = Contructor.p__Site26.Target;
|
|
CallSite p__Site16 = Contructor.p__Site26;
|
|
Contructor.p__Site27 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"SPIStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array8[num5] = target24(p__Site16, Contructor.p__Site27.Target(Contructor.p__Site27, entity));
|
|
double[] array9 = array7;
|
|
int num6 = 2;
|
|
Contructor.p__Site28 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target25 = Contructor.p__Site28.Target;
|
|
CallSite p__Site17 = Contructor.p__Site28;
|
|
Contructor.p__Site29 ??= CallSite<Func<CallSite, object, object, object>>.Create(
|
|
Binder.InvokeMember(
|
|
CSharpBinderFlags.None,
|
|
"ElevationAt",
|
|
null,
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
Func<CallSite, object, object, object> target26 = Contructor.p__Site29.Target;
|
|
CallSite p__Site18 = Contructor.p__Site29;
|
|
Contructor.p__Site2a ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"SPIStation",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array9[num6] = target25(p__Site17, target26(p__Site18, profile, Contructor.p__Site2a.Target(Contructor.p__Site2a, entity)));
|
|
object obj3 = target23(p__Site15, baseline, array7);
|
|
Contructor.p__Site2b ??= CallSite<Func<CallSite, Type, object, double[], TextPoint2D>>.Create(
|
|
Binder.InvokeConstructor(
|
|
CSharpBinderFlags.None,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, Type, object, double[], TextPoint2D> target27 = Contructor.p__Site2b.Target;
|
|
CallSite p__Site2b = Contructor.p__Site2b;
|
|
Type typeFromHandle = typeof(TextPoint2D);
|
|
object arg = obj;
|
|
double[] array10 = new double[2];
|
|
double[] array11 = array10;
|
|
int num7 = 0;
|
|
Contructor.p__Site2c ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target28 = Contructor.p__Site2c.Target;
|
|
CallSite p__Site2c = Contructor.p__Site2c;
|
|
Contructor.p__Site2d ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"StartEasting",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array11[num7] = target28(p__Site2c, Contructor.p__Site2d.Target(Contructor.p__Site2d, entity));
|
|
double[] array12 = array10;
|
|
int num8 = 1;
|
|
Contructor.p__Site2e ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target29 = Contructor.p__Site2e.Target;
|
|
CallSite p__Site2e = Contructor.p__Site2e;
|
|
Contructor.p__Site2f ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"StartNorthing",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array12[num8] = target29(p__Site2e, Contructor.p__Site2f.Target(Contructor.p__Site2f, entity));
|
|
Start = target27(p__Site2b, typeFromHandle, arg, array10);
|
|
Contructor.p__Site30 ??= CallSite<Func<CallSite, Type, object, double[], TextPoint2D>>.Create(
|
|
Binder.InvokeConstructor(
|
|
CSharpBinderFlags.None,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, Type, object, double[], TextPoint2D> target30 = Contructor.p__Site30.Target;
|
|
CallSite p__Site19 = Contructor.p__Site30;
|
|
Type typeFromHandle2 = typeof(TextPoint2D);
|
|
object arg2 = obj2;
|
|
double[] array13 = new double[2];
|
|
double[] array14 = array13;
|
|
int num9 = 0;
|
|
Contructor.p__Site31 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target31 = Contructor.p__Site31.Target;
|
|
CallSite p__Site20 = Contructor.p__Site31;
|
|
Contructor.p__Site32 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"EndEasting",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array14[num9] = target31(p__Site20, Contructor.p__Site32.Target(Contructor.p__Site32, entity));
|
|
double[] array15 = array13;
|
|
int num10 = 1;
|
|
Contructor.p__Site33 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target32 = Contructor.p__Site33.Target;
|
|
CallSite p__Site21 = Contructor.p__Site33;
|
|
Contructor.p__Site34 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"EndNorthing",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array15[num10] = target32(p__Site21, Contructor.p__Site34.Target(Contructor.p__Site34, entity));
|
|
End = target30(p__Site19, typeFromHandle2, arg2, array13);
|
|
Contructor.p__Site35 ??= CallSite<Func<CallSite, Type, object, double[], TextPoint2D>>.Create(
|
|
Binder.InvokeConstructor(
|
|
CSharpBinderFlags.None,
|
|
typeof(Spiral),
|
|
new[]
|
|
{
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
|
|
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
|
|
}
|
|
)
|
|
);
|
|
|
|
Func<CallSite, Type, object, double[], TextPoint2D> target33 = Contructor.p__Site35.Target;
|
|
CallSite p__Site22 = Contructor.p__Site35;
|
|
Type typeFromHandle3 = typeof(TextPoint2D);
|
|
object arg3 = obj3;
|
|
double[] array16 = new double[2];
|
|
double[] array17 = array16;
|
|
int num11 = 0;
|
|
Contructor.p__Site36 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target34 = Contructor.p__Site36.Target;
|
|
CallSite p__Site23 = Contructor.p__Site36;
|
|
Contructor.p__Site37 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"PIEasting",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array17[num11] = target34(p__Site23, Contructor.p__Site37.Target(Contructor.p__Site37, entity));
|
|
double[] array18 = array16;
|
|
int num12 = 1;
|
|
Contructor.p__Site38 ??= CallSite<Func<CallSite, object, double>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(double), typeof(Spiral)));
|
|
|
|
Func<CallSite, object, double> target35 = Contructor.p__Site38.Target;
|
|
CallSite p__Site24 = Contructor.p__Site38;
|
|
Contructor.p__Site39 ??= CallSite<Func<CallSite, object, object>>.Create(
|
|
Binder.GetMember(
|
|
CSharpBinderFlags.None,
|
|
"PINorthing",
|
|
typeof(Spiral),
|
|
new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
|
|
)
|
|
);
|
|
|
|
array18[num12] = target35(p__Site24, Contructor.p__Site39.Target(Contructor.p__Site39, entity));
|
|
PI = target33(p__Site22, typeFromHandle3, arg3, array16);
|
|
while (Dir < 0.0)
|
|
{
|
|
Dir += 360.0;
|
|
}
|
|
|
|
while (Dir >= 360.0)
|
|
{
|
|
Dir -= 360.0;
|
|
}
|
|
}
|
|
|
|
[XmlElement("PI")]
|
|
public TextPoint2D PI
|
|
{
|
|
get => _points[2];
|
|
set => _points[2] = value;
|
|
}
|
|
|
|
[XmlAttribute("tanShort")]
|
|
public double TanShort { get; set; }
|
|
|
|
[XmlAttribute("tanLong")]
|
|
public double TanLong { get; set; }
|
|
|
|
[XmlAttribute("totalX")]
|
|
public double TotalX { get; set; }
|
|
|
|
[XmlAttribute("totalY")]
|
|
public double TotalY { get; set; }
|
|
|
|
[XmlAttribute("theta")]
|
|
public double Dir { get; set; }
|
|
|
|
[XmlAttribute("radiusStart")]
|
|
public double RadiusStart { get; set; }
|
|
|
|
[XmlAttribute("radiusEnd")]
|
|
public double RadiusEnd { get; set; }
|
|
|
|
[XmlAttribute("rot")]
|
|
public string Rot { get; set; }
|
|
|
|
[XmlAttribute("spiType")]
|
|
public string SpiType { get; set; }
|
|
|
|
public override double GetDirectionAtPoint(double station)
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private static class Contructor
|
|
{
|
|
public static CallSite<Func<CallSite, object, double>> p__Site1;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site10;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site11;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site12;
|
|
|
|
public static CallSite<Func<CallSite, object, bool>> p__Site13;
|
|
|
|
public static CallSite<Func<CallSite, object, int, object>> p__Site14;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site15;
|
|
|
|
public static CallSite<Func<CallSite, object, string>> p__Site16;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site17;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site18;
|
|
|
|
public static CallSite<Func<CallSite, object, double[], object>> p__Site19;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site1a;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site1b;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site1c;
|
|
|
|
public static CallSite<Func<CallSite, object, object, object>> p__Site1d;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site1e;
|
|
|
|
public static CallSite<Func<CallSite, object, double[], object>> p__Site1f;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site2;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site20;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site21;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site22;
|
|
|
|
public static CallSite<Func<CallSite, object, object, object>> p__Site23;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site24;
|
|
|
|
public static CallSite<Func<CallSite, object, double[], object>> p__Site25;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site26;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site27;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site28;
|
|
|
|
public static CallSite<Func<CallSite, object, object, object>> p__Site29;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site2a;
|
|
|
|
public static CallSite<Func<CallSite, Type, object, double[], TextPoint2D>> p__Site2b;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site2c;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site2d;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site2e;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site2f;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site3;
|
|
|
|
public static CallSite<Func<CallSite, Type, object, double[], TextPoint2D>> p__Site30;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site31;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site32;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site33;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site34;
|
|
|
|
public static CallSite<Func<CallSite, Type, object, double[], TextPoint2D>> p__Site35;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site36;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site37;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site38;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site39;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site4;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site5;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site6;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site7;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Site8;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Site9;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Sitea;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Siteb;
|
|
|
|
public static CallSite<Func<CallSite, object, double, object>> p__Sitec;
|
|
|
|
public static CallSite<Func<CallSite, object, double, object>> p__Sited;
|
|
|
|
public static CallSite<Func<CallSite, object, object>> p__Sitee;
|
|
|
|
public static CallSite<Func<CallSite, object, double>> p__Sitef;
|
|
}
|
|
}
|