mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
cube now spinn in 3d
This commit is contained in:
4
Sources/Voxelotl/FloatExtensions.swift
Normal file
4
Sources/Voxelotl/FloatExtensions.swift
Normal file
@ -0,0 +1,4 @@
|
||||
public extension FloatingPoint {
|
||||
@inline(__always) var degrees: Self { self * (180 / Self.pi) }
|
||||
@inline(__always) var radians: Self { self * (Self.pi / 180) }
|
||||
}
|
Reference in New Issue
Block a user