Files
voxelotl-engine/Sources/Voxelotl/Random/CoherentNoise.swift

18 lines
404 B
Swift
Raw Permalink Normal View History

2024-08-29 03:56:54 +10:00
public protocol CoherentNoise2D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD2<Scalar>) -> Scalar
}
public protocol CoherentNoise3D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD3<Scalar>) -> Scalar
}
public protocol CoherentNoise4D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD4<Scalar>) -> Scalar
}