public CoordinateSystem(Drawing drawing) { Check.NotNull(drawing); Drawing = drawing; Drawing.SizeChanged += Drawing_SizeChanged; Origin = PhysicalSize.Scale(0.5).SnapToIntegers().Minus(0.5); }
private static IEnumerable <IGraphNode> GetActorNodes(PhysicalSize physicalSize, IGraphNode baseNode, IMap map) { yield return(baseNode); if (physicalSize == PhysicalSize.Size7) { var neighbors = map.GetNext(baseNode); foreach (var neighbor in neighbors) { yield return(neighbor); } } }
public override int GetHashCode() => (BackgroundColor?.GetHashCode() ?? 0) ^ PhysicalSize.GetHashCode() ^ Dpi.GetHashCode();
public bool Equals(InternalImageOptions other) => Nullable.Equals(BackgroundColor, other.BackgroundColor) && PhysicalSize.Equals(other.PhysicalSize) && Dpi.Equals(other.Dpi);