작업 조건 분석 기능 개발

This commit is contained in:
정영민
2025-03-10 16:42:23 +09:00
parent 840638c6e3
commit f2029fd8c9
2988 changed files with 569938 additions and 2342 deletions

View File

@@ -0,0 +1,45 @@
#define Graph_And_Chart_PRO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChartAndGraph
{
/// <summary>
/// holds tiling infomartion for chart lines
/// </summary>
[Serializable]
public struct MaterialTiling
{
public bool EnableTiling;
public float TileFactor;
public MaterialTiling(bool enable, float value)
{
EnableTiling = enable;
TileFactor = value;
}
public override bool Equals(object obj)
{
if (obj is AutoFloat)
{
AutoFloat cast = (AutoFloat)obj;
if (cast.Automatic == true && EnableTiling == true)
return true;
if (cast.Automatic == false && EnableTiling == false && cast.Value == TileFactor)
return true;
return false;
}
return false;
}
public override int GetHashCode()
{
if (EnableTiling == true)
return EnableTiling.GetHashCode();
return TileFactor.GetHashCode();
}
}
}