JUMBO vecmath completion update
This commit is contained in:
@@ -59,6 +59,16 @@ pub const epu64 = simd.epu64;
|
||||
|
||||
const trig = @import("trig.zig");
|
||||
|
||||
pub const rad_per_turn = trig.rad_per_turn;
|
||||
pub const deg_per_turn = trig.deg_per_turn;
|
||||
pub const turns_per_rad = trig.turns_per_rad;
|
||||
pub const turns_per_deg = trig.turns_per_deg;
|
||||
|
||||
pub const turnsToRadians = trig.turnsToRadians;
|
||||
pub const turnsToDegrees = trig.turnsToDegrees;
|
||||
pub const radiansToTurns = trig.radiansToTurns;
|
||||
pub const degreesToTurns = trig.degreesToTurns;
|
||||
|
||||
pub const cos = trig.cos;
|
||||
pub const cos_x8 = trig.cos_x8;
|
||||
pub const sin = trig.sin;
|
||||
@@ -68,8 +78,8 @@ pub const cossin_x8 = trig.cossin_x8;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
pub inline fn lerp(a: f32, b: f32, t: f32) f32 {
|
||||
return @mulAdd(f32, t, b, @mulAdd(f32, -t, a, a));
|
||||
pub inline fn lerp(comptime T: type, a: T, b: T, t: T) T {
|
||||
return @mulAdd(T, t, b, @mulAdd(T, -t, a, a));
|
||||
}
|
||||
|
||||
test "refAllDecls" {
|
||||
|
||||
Reference in New Issue
Block a user