voxelotl-engine/Sources/Voxelotl/Noise/CoherentNoise.swift
2024-09-03 02:57:29 +10:00

18 lines
404 B
Swift

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
}