mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-25 04:30:38 +00:00
38 lines
524 B
Swift
38 lines
524 B
Swift
//
|
|
// Vectors.swift
|
|
// lottie-swift
|
|
//
|
|
// Created by Brandon Withrow on 2/4/19.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Vector1D {
|
|
|
|
public init(_ value: Double) {
|
|
self.value = value
|
|
}
|
|
|
|
public let value: Double
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
A three dimensional vector.
|
|
These vectors are encoded and decoded from [Double]
|
|
*/
|
|
public struct Vector3D {
|
|
|
|
public let x: Double
|
|
public let y: Double
|
|
public let z: Double
|
|
|
|
public init(x: Double, y: Double, z: Double) {
|
|
self.x = x
|
|
self.y = y
|
|
self.z = z
|
|
}
|
|
|
|
}
|