gars-ios 1.1.5 Documentation

Enumeration Grid​Type

public enum GridType: Int, CaseIterable  
  • Grid type enumeration
GridType GridType Int Int GridType->Int CaseIterable CaseIterable GridType->CaseIterable

Conforms To

CaseIterable
Int

Enumeration Cases

TWENTY_DEGREE

case TWENTY_DEGREE
  • Twenty Degree

TEN_DEGREE

case TEN_DEGREE
  • Ten Degree

FIVE_DEGREE

case FIVE_DEGREE
  • Five Degree

ONE_DEGREE

case ONE_DEGREE
  • One Degree

THIRTY_MINUTE

case THIRTY_MINUTE
  • Thirty Minute

FIFTEEN_MINUTE

case FIFTEEN_MINUTE
  • Fifteen Minute

FIVE_MINUTE

case FIVE_MINUTE
  • Five Minute

Methods

precision()

public func precision() -> Double  
  • Get the precision in degrees
  • @return precision degrees

precision(_:​)

public static func precision(_ value: Double) -> GridType  
  • Get the precision of the value in degrees
  • @param value
  •        value in degrees
    
  • @return precision grid type

less​Precise(_:​)

public static func lessPrecise(_ type: GridType) -> [GridType]  
  • Get the less precise (larger precision value) grid types
  • @param type
  •        grid type
    
  • @return grid types less precise

more​Precise(_:​)

public static func morePrecise(_ type: GridType) -> [GridType]  
  • Get the more precise (smaller precision value) grid types
  • @param type
  •        grid type
    
  • @return grid types more precise