MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / will_swap_coordinates

Method will_swap_coordinates

libraries/rawkit/src/tiff/values.rs:74–79  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72 }
73
74 pub fn will_swap_coordinates(&self) -> bool {
75 match *self {
76 Self::Horizontal | Self::MirrorHorizontal | Self::Rotate180 | Self::MirrorVertical => false,
77 Self::MirrorHorizontalRotate270 | Self::Rotate90 | Self::MirrorHorizontalRotate90 | Self::Rotate270 => true,
78 }
79 }
80}
81
82#[derive(Debug, PartialEq, Eq, Clone, Copy, IntoPrimitive, TryFromPrimitive)]

Callers 1

orientation_iterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected