Skip to content

Commit

Permalink
midLocation typo in property name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilot-Marc committed Dec 1, 2019
1 parent 366e462 commit 2ae4850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ARKit-CoreLocation/Nodes/PolylineNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private extension PolylineNode {
for i in 0 ..< polyline.pointCount - 1 {
let currentLocation = CLLocation(coordinate: points[i].coordinate, altitude: altitude)
let nextLocation = CLLocation(coordinate: points[i + 1].coordinate, altitude: altitude)
let midLoction = currentLocation.midPoint(to: nextLocation)
let midLocation = currentLocation.midPoint(to: nextLocation)

let distance = currentLocation.distance(from: nextLocation)

Expand All @@ -86,7 +86,7 @@ private extension PolylineNode {
// Orient the line to point from currentLoction to nextLocation
boxNode.eulerAngles.y = Float(bearing).degreesToRadians

let locationNode = LocationNode(location: midLoction, tag: tag)
let locationNode = LocationNode(location: midLocation, tag: tag)
locationNode.addChildNode(boxNode)

locationNodes.append(locationNode)
Expand Down

0 comments on commit 2ae4850

Please sign in to comment.