longestStretchWithRotateY method

List<Direction>? longestStretchWithRotateY()

rotateY后最长边延伸落在哪个象限

Implementation

List<Direction>? longestStretchWithRotateY() {
  if (_rotateY < 0) {
    return [Direction.right_top, Direction.right_bottom];
  } else if (_rotateY > 0) {
    return [Direction.left_top, Direction.left_bottom];
  }
  return null;
}