작업 조건 분석 기능 개발
This commit is contained in:
29
Assets/Chart And Graph/Script/Common/DoubleRect.cs
Normal file
29
Assets/Chart And Graph/Script/Common/DoubleRect.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ChartAndGraph
|
||||
{
|
||||
public struct DoubleRect
|
||||
{
|
||||
public double X,Y,Width,Height;
|
||||
|
||||
public DoubleRect(double x,double y,double width,double height)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
Width = width;
|
||||
Height = height;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("x:{0},y:{1},w:{2},h:{3}", X, Y, Width, Height);
|
||||
}
|
||||
|
||||
public DoubleVector3 min { get { return new DoubleVector3(X, Y); } }
|
||||
public DoubleVector3 max { get { return new DoubleVector3(X + Width, Y + Height); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user