math: remove contains_nan and is_finite

This commit is contained in:
2019-12-17 00:46:48 +07:00
parent e6578a4265
commit 36f516ab1c
49 changed files with 7 additions and 318 deletions

View File

@@ -75,9 +75,5 @@ function aabb.normalized_to_point(r, p) end
---@return v3f
function aabb.point_to_normalized(r, p) end
---@param r aabb
---@return boolean
function aabb.contains_nan(r) end
---@type aabb
_G.aabb = _G.aabb or aabb

View File

@@ -39,9 +39,5 @@ function m2f.inversed(m) end
---@return m2f
function m2f.transposed(m) end
---@param m m2f
---@return boolean
function m2f.contains_nan(m) end
---@type m2f
_G.m2f = _G.m2f or m2f

View File

@@ -43,9 +43,5 @@ function m3f.inversed(m) end
---@return m3f
function m3f.transposed(m) end
---@param m m3f
---@return boolean
function m3f.contains_nan(m) end
---@type m3f
_G.m3f = _G.m3f or m3f

View File

@@ -90,9 +90,5 @@ function m4f.inversed(m) end
---@return m4f
function m4f.transposed(m) end
---@param m m4f
---@return boolean
function m4f.contains_nan(m) end
---@type m4f
_G.m4f = _G.m4f or m4f

View File

@@ -75,9 +75,5 @@ function rect.normalized_to_point(r, p) end
---@return v2f
function rect.point_to_normalized(r, p) end
---@param r rect
---@return boolean
function rect.contains_nan(r) end
---@type rect
_G.rect = _G.rect or rect

View File

@@ -37,9 +37,5 @@ function t2f.make_scale(s) end
---@return boolean
function t2f.approximately(l, r) end
---@param t t2f
---@return boolean
function t2f.contains_nan(t) end
---@type t2f
_G.t2f = _G.t2f or t2f

View File

@@ -37,9 +37,5 @@ function t3f.make_scale(s) end
---@return boolean
function t3f.approximately(l, r) end
---@param t t3f
---@return boolean
function t3f.contains_nan(t) end
---@type t3f
_G.t3f = _G.t3f or t3f

View File

@@ -105,9 +105,5 @@ function v2f.lerp(l,r,v) end
---@return v2f
function v2f.inverse_lerp(l,r,v) end
---@param v v2f
---@return boolean
function v2f.contains_nan(v) end
---@type v2f
_G.v2f = _G.v2f or v2f

View File

@@ -116,9 +116,5 @@ function v3f.lerp(l,r,v) end
---@return v3f
function v3f.inverse_lerp(l,r,v) end
---@param v v3f
---@return boolean
function v3f.contains_nan(v) end
---@type v3f
_G.v3f = _G.v3f or v3f

View File

@@ -117,9 +117,5 @@ function v4f.lerp(l,r,v) end
---@return v4f
function v4f.inverse_lerp(l,r,v) end
---@param v v4f
---@return boolean
function v4f.contains_nan(v) end
---@type v4f
_G.v4f = _G.v4f or v4f

View File

@@ -78,9 +78,5 @@ function color.maximized(c,cmax) end
---@return color
function color.clamped(c,cmin,cmax) end
---@param c color
---@return boolean
function color.contains_nan(c) end
---@type color
_G.color = _G.color or color

View File

@@ -78,9 +78,5 @@ function color32.maximized(c,cmax) end
---@return color32
function color32.clamped(c,cmin,cmax) end
---@param c color32
---@return boolean
function color32.contains_nan(c) end
---@type color32
_G.color32 = _G.color32 or color32