1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37//
// Vectors.swift
// lottie-swift
//
// Created by Brandon Withrow on 2/4/19.
//
// MARK: - LottieVector1D
public struct LottieVector1D: Hashable, Sendable {
public init(_ value: Double) {
self.value = value
}
public let value: Double
}
// MARK: - LottieVector3D
/// A three dimensional vector.
/// These vectors are encoded and decoded from [Double]
public struct LottieVector3D: Hashable, Sendable {
public init(x: Double, y: Double, z: Double) {
self.x = x
self.y = y
self.z = z
}
public let x: Double
public let y: Double
public let z: Double
}