mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
42 lines
634 B
Lua
42 lines
634 B
Lua
---@class t3f
|
|
local t3f = {
|
|
---@type v3f
|
|
translation = v3f.zero(),
|
|
|
|
---@type v3f
|
|
rotation = v3f.zero(),
|
|
|
|
---@type v3f
|
|
scale = v3f.unit()
|
|
}
|
|
|
|
---@overload fun(): t3f
|
|
---@return t3f
|
|
function t3f.new() end
|
|
|
|
---@return t3f
|
|
function t3f.zero() end
|
|
|
|
---@return t3f
|
|
function t3f.identity() end
|
|
|
|
---@param t v3f
|
|
---@return t3f
|
|
function t3f.make_translation(t) end
|
|
|
|
---@param r v3f
|
|
---@return t3f
|
|
function t3f.make_rotation(r) end
|
|
|
|
---@param s v3f
|
|
---@return t3f
|
|
function t3f.make_scale(s) end
|
|
|
|
---@param l t3f
|
|
---@param r t3f
|
|
---@return boolean
|
|
function t3f.approximately(l, r) end
|
|
|
|
---@type t3f
|
|
_G.t3f = _G.t3f or t3f
|