namespace TACO { using System; using System.Collections; public class DistortionField { private double mVelocityXFactor = 1; private double mVelocityYFactor = 1; private double mWeightFactor = 1; private double mX = 0; private double mY = 0; private double mWidth = 0; private double mHeight = 0; public double X { get { return mX; } set { mX = value; } } public double Y { get { return mY; } set { mY = value; } } public double Width { get { return mWidth; } set { mWidth = value; } } public double Height { get { return mHeight; } set { mHeight = value; } } public double VelocityXFactor { get { return mVelocityXFactor; } set { mVelocityXFactor = value; } } public double VelocityYFactor { get { return mVelocityYFactor; } set { mVelocityYFactor = value; } } public double WeightFactor { get { return mWeightFactor; } set { mWeightFactor = value; } } public bool ContainsThingie(Thingie thingie) { // TODO: Calculate width return (thingie.X >= X && thingie.X < X + Width && thingie.Y >= Y && thingie.Y < Y + Height); } } }