using System;
namespace Science.Mathematics.PartialDifferentialEquation
{
///
/// Domain in Three Dimensional Space
///
public class Domain3D
{
private double xf, xt, yf, yt, zf, zt;
public Domain3D()
{
}
private Function.ToLastType[] cf3;
private Function.ToLastType cf;
public Function.ToLastType ConditionFunctionLessThanZero
{
set
{
cf = value;
cf3 = new Function.ToLastType[1];
cf3[0] = cf;
}
}
public Function.ToLastType[] ConditionFunctionsLessThanZero
{
set{cf3 = value;}
}
public double LowerBoundOfX
{
get{return xf;}
set{xf=value;}
}
public double UpperBoundOfX
{
get{return xt;}
set{xt=value;}
}
public double LowerBoundOfY
{
get{return yf;}
set{yf=value;}
}
public double UpperBoundOfY
{
get{return yt;}
set{yt=value;}
}
public double LowerBoundOfZ
{
get{return zf;}
set{zf=value;}
}
public double UpperBoundOfZ
{
get{return zt;}
set{zt=value;}
}
public bool Check(double x, double y, double z)
{
for(int k = 0; k < cf3.Length; k++)
if(cf3[k](x,y,z) >= 0.0) return false;
return true;
}
}
}