Skip to content

Commit

Permalink
Make ZodiacCoordinate init public (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsmithers1087 committed Dec 26, 2022
1 parent 20a97e6 commit 9d9ac62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/SwissEphemeris/ZodiacCoordinate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ public struct ZodiacCoordinate: Codable {
/// The second value for the degree.
public var second: Double { minute.truncatingRemainder(dividingBy: 1) * 60 }

/// An internal initializer for creating a `ZodiacCoordinate`.
/// An initializer for creating a `ZodiacCoordinate`.
/// - Parameter value: Must be between 0-360.
init(value: Double) {
public init(value: Double) {
self.value = value
}

/// An internal initializer for creating a `ZodiacCoordinate` with an offset.
/// An initializer for creating a `ZodiacCoordinate` with an offset.
/// - Parameters:
/// - value: Must be between 0-360.
/// - offset: The offset to set.
init(value: Double, offset: Double) {
public init(value: Double, offset: Double) {
self.value = value - offset >= 0 ? value - offset : 360.0 + value - offset
}
}
Expand Down

0 comments on commit 9d9ac62

Please sign in to comment.