protected Vec3 Transform(double x, double y, double z)
{
if (mProjection != null)
{
Vec3 projPoint = mProjection.Transform(new Vec3(x, y, z));
x = projPoint.X;
y = projPoint.Y;
z = projPoint.Z;
}
if (mTransforms.Count > 0)
{
Vec3 vec = new Vec3(x, y, z);
foreach (Transform3D trans in mTransforms)
{
vec = trans.Transform(vec);
}
x = vec.X;
y = vec.Y;
z = vec.Z;
}
return new Vec3(x, y, z);
}