mgrs-ios 1.1.6 Documentation

Class MGRSLine

public class MGRSLine: Line  
  • Line between two points
MGRSLine MGRSLine Line Line MGRSLine->Line

Superclass

Line

Initializers

init(_:​_:​)

public override init(_ point1: GridPoint, _ point2: GridPoint)  
  • Initialize
  • @param point1
  •        first point
    
  • @param point2
  •        second point
    

init(_:​_:​_:​)

public convenience init(_ point1: GridPoint, _ point2: GridPoint, _ gridType: GridType?)  
  • Initialize
  • @param point1
  •        first point
    
  • @param point2
  •        second point
    
  • @param gridType
  •        line grid type
    

init(_:​)

public override init(_ line: Line)  
  • Initialize
  • @param line
  •        line to copy
    

init(_:​_:​)

public convenience init(_ line: Line, _ gridType: GridType?)  
  • Initialize
  • @param line
  •        line to copy
    
  • @param gridType
  •        line grid type
    

init(_:​)

public convenience init(_ gridLine: MGRSLine)  
  • Initialize
  • @param gridLine
  •        line to copy
    

init?(coder:​)

public required init?(coder: NSCoder)  

Properties

grid​Type

public var gridType: GridType? 
  • Grid type the line represents if any

hash

public override var hash: Int  

Methods

has​Grid​Type()

public func hasGridType() -> Bool  
  • Check if the line has a grid type
  • @return true if has grid type

mutable​Copy(with:​)

public override func mutableCopy(with zone: NSZone? = nil) -> Any  

encode(with:​)

public override func encode(with coder: NSCoder)  

is​Equal(_:​)

public func isEqual(_ gridLine: MGRSLine?) -> Bool  

is​Equal(_:​)

public override func isEqual(_ object: Any?) -> Bool