public bool IsXInView(double x, double absoluteZ)
{
if (mOrthogonal)
{
return (x > Position.X - mOrthogonalWidth / 2.0f && x < Position.X + mOrthogonalWidth / 2.0f);
}
else
{
#if FRB_MDX
double cameraDistance = (absoluteZ - Position.Z) / 100.0;
#else
double cameraDistance = (Position.Z - absoluteZ) / 100.0;
#endif
if (x > Position.X - mXEdge * cameraDistance && x < Position.X + mXEdge * cameraDistance)
return true;
else
return false;
}
}