public SharedDirection(float _xLength, float _yLength, float _divisor) { if (!(_xLength % _divisor == 0 && _yLength % _divisor == 0)) { throw new Exception("Make sure the components of a direction length are a number divisible by the divisor."); } sharedDirection = new SharedResources.SharedDirection(new List <float>() { _xLength, _yLength }, _divisor); }
public SharedDirection(float _divisor) { sharedDirection = new SharedResources.SharedDirection(_divisor); }
public SharedDirection() { sharedDirection = new SharedResources.SharedDirection(); }