Dwarrowdelf.ShadowCastRecursive.OctantTranslate C# (CSharp) Method

OctantTranslate() static private method

static private OctantTranslate ( IntVector2 p, int octant ) : IntVector2
p IntVector2
octant int
return IntVector2
		static IntVector2 OctantTranslate(IntVector2 p, int octant)
		{
			int tx = p.X * xxcomp[octant] + p.Y * xycomp[octant];
			int ty = p.X * yxcomp[octant] + p.Y * yycomp[octant];

			return new IntVector2(tx, ty);
		}
	}
ShadowCastRecursive