Class
Line
open class Line: SFLine
- Line between two points
Relationships
Subclasses
MGRSLine
Conforms To
SFLine
Initializers
init(_:_:)
- Initialize
- @param point1
-
first point
- @param point2
-
second point
init?(coder:)
public required init?(coder: NSCoder)
Properties
hash
open override var hash: Int
Methods
setPoints(_:_:)
- Set the points
- @param point1
-
first point
- @param point2
-
second point
isUnit(_:)
public func isUnit(_ unit: Unit) -> Bool
- Is in the provided unit type
- @param unit
-
unit
- @return true if in the unit
toUnit(_:)
- Convert to the unit
- @param unit
-
unit
- @return line in units, same line if equal units
toDegrees()
public func toDegrees() -> Line
- Convert to degrees
- @return line in degrees, same line if already in degrees
toMeters()
public func toMeters() -> Line
- Convert to meters
- @return line in meters, same line if already in meters
intersection(_:)
- Get the intersection between this line and the provided line
- @param line
-
line
- @return intersection
mutableCopy(with:)
open override func mutableCopy(with zone: NSZone? = nil) -> Any
encode(with:)
open override func encode(with coder: NSCoder)
isEqual(_:)
public func isEqual(_ line: Line?) -> Bool
isEqual(_:)
open override func isEqual(_ object: Any?) -> Bool