This commit is contained in:
2024-11-07 05:23:22 +03:30
parent cd441ef6bf
commit aec54aa45a
23 changed files with 14777 additions and 272 deletions
+44
View File
@@ -1915,6 +1915,50 @@ bool IsBetween(
return result;
}
/**
* Check Zone for Refining ...
*
* @param source: XZone instance ...
* @param dest: XZone instance ...
* @param bar: XOHCL instance ...
*
* @return ( bool )
*/
bool CanRefineZone(
XZone &source,
XZone &dest,
XOHCL &bar //
)
{
//
bool result = false;
//
result =
//
!dest.IsValid()
? (
//
source.lower < bar.low &&
source.upper > bar.high
//
)
: (
//
dest.lower < bar.low &&
dest.upper > bar.high &&
source.lower < bar.low &&
source.upper > bar.high &&
source.GetRange() < dest.GetRange()
//
)
//
;
//
return result;
}
/**
* Check Source breaked Dest from Upper ...
*