Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kassane/sokol-d into imgui-support
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 17, 2024
2 parents 92c4f73 + 2aea3d1 commit 049edf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/handmade/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
//------------------------------------------------------------------------------
module handmade.math;

import std.math : PI, sqrt, sin, cos, tan, isClose;
extern(C):
import std.math : PI;
import core.stdc.math : sqrt, sin, cos, tan;

@safe:

Expand Down Expand Up @@ -211,7 +213,7 @@ float radians(float deg)

@safe pure unittest
{

import std.math : isClose;
// Vec3.zero test
{
auto v = Vec3.zero();
Expand All @@ -224,7 +226,7 @@ float radians(float deg)

@safe pure unittest
{

import std.math : isClose;
// Vec3.new test
{
auto v = Vec3(1.0, 2.0, 3.0);
Expand All @@ -237,7 +239,7 @@ float radians(float deg)

@safe pure unittest
{

import std.math : isClose;
// Mat4.identity test
{
auto m = Mat4.identity();
Expand Down

0 comments on commit 049edf9

Please sign in to comment.