public static Edge GetHighestSlopeEdge(this TmxLayerTile self) { // left and right already have flipping taken into account. Also remember a lower value means a taller slope since the slope values // are in pixels from the top! var left = self.GetSlopeTopLeft(); var right = self.GetSlopeTopRight(); return(right > left ? Edge.Left : Edge.Right); }
public static float GetSlopeOffset(this TmxLayerTile self) => self.GetSlopeTopLeft();