Skip to content

Commit

Permalink
Merge pull request #37 from cedricduriau/36-all-renameinputcontrols
Browse files Browse the repository at this point in the history
rename all input controls to mathematical terminology
  • Loading branch information
cedricduriau authored Mar 30, 2020
2 parents efc0f07 + 45bed2f commit 0954cd4
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 51 deletions.
12 changes: 6 additions & 6 deletions fusion/Fuses/numberadd.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber1 = self:AddInput("Number1" , "Number1" , {
InTerm1 = self:AddInput("Term1" , "Term1" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand All @@ -28,7 +28,7 @@ function Create()
INP_Default = 0
})

InNumber2 = self:AddInput("Number2" , "Number2" , {
InTerm2 = self:AddInput("Term2" , "Term2" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 2,
Expand Down Expand Up @@ -68,15 +68,15 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber1:SetAttrs({LINK_Visible = visible})
InNumber2:SetAttrs({LINK_Visible = visible})
InTerm1:SetAttrs({LINK_Visible = visible})
InTerm2:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n1 = InNumber1:GetValue(req).Value
local n2 = InNumber2:GetValue(req).Value
local n1 = InTerm1:GetValue(req).Value
local n2 = InTerm2:GetValue(req).Value

local result = n1 + n2
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numberarccosine.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.acos(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numberarcsine.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.asin(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numberarctangent.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.atan(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numbercosine.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.cos(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numberdegreestoradians.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InDegrees = self:AddInput("Degrees" , "Degrees" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InDegrees:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InDegrees:GetValue(req).Value

local result = math.rad(n)
local out = Number(result)
Expand Down
12 changes: 6 additions & 6 deletions fusion/Fuses/numberdivide.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber1 = self:AddInput("Number1" , "Number1" , {
InNumerator = self:AddInput("Numerator" , "Numerator" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand All @@ -28,7 +28,7 @@ function Create()
INP_Default = 0
})

InNumber2 = self:AddInput("Number2" , "Number2" , {
InDenominator = self:AddInput("Denominator" , "Denominator" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 2,
Expand Down Expand Up @@ -68,15 +68,15 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber1:SetAttrs({LINK_Visible = visible})
InNumber2:SetAttrs({LINK_Visible = visible})
InNumerator:SetAttrs({LINK_Visible = visible})
InDenominator:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n1 = InNumber1:GetValue(req).Value
local n2 = InNumber2:GetValue(req).Value
local n1 = InNumerator:GetValue(req).Value
local n2 = InDenominator:GetValue(req).Value

local result = n1 / n2
local out = Number(result)
Expand Down
12 changes: 6 additions & 6 deletions fusion/Fuses/numbermultiply.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber1 = self:AddInput("Number1" , "Number1" , {
InFactor1 = self:AddInput("Factor1" , "Factor1" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand All @@ -28,7 +28,7 @@ function Create()
INP_Default = 0
})

InNumber2 = self:AddInput("Number2" , "Number2" , {
InFactor2 = self:AddInput("Factor2" , "Factor2" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 2,
Expand Down Expand Up @@ -68,15 +68,15 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber1:SetAttrs({LINK_Visible = visible})
InNumber2:SetAttrs({LINK_Visible = visible})
InFactor1:SetAttrs({LINK_Visible = visible})
InFactor2:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n1 = InNumber1:GetValue(req).Value
local n2 = InNumber2:GetValue(req).Value
local n1 = InFactor1:GetValue(req).Value
local n2 = InFactor2:GetValue(req).Value

local result = n1 * n2
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numberradianstodegrees.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.deg(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numbersine.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.sin(n)
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numbersquareroot.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadicand = self:AddInput("Radicand" , "Radicand" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadicand:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadicand:GetValue(req).Value

local result = math.sqrt(n)
local out = Number(result)
Expand Down
12 changes: 6 additions & 6 deletions fusion/Fuses/numbersubtract.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber1 = self:AddInput("Number1" , "Number1" , {
InTerm1 = self:AddInput("Term1" , "Term1" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand All @@ -28,7 +28,7 @@ function Create()
INP_Default = 0
})

InNumber2 = self:AddInput("Number2" , "Number2" , {
InTerm2 = self:AddInput("Term2" , "Term2" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 2,
Expand Down Expand Up @@ -68,15 +68,15 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber1:SetAttrs({LINK_Visible = visible})
InNumber2:SetAttrs({LINK_Visible = visible})
InTerm1:SetAttrs({LINK_Visible = visible})
InTerm2:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n1 = InNumber1:GetValue(req).Value
local n2 = InNumber2:GetValue(req).Value
local n1 = InTerm1:GetValue(req).Value
local n2 = InTerm2:GetValue(req).Value

local result = n1 - n2
local out = Number(result)
Expand Down
6 changes: 3 additions & 3 deletions fusion/Fuses/numbertangent.fuse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FuRegisterClass(FUSE_NAME, CT_Tool, {

function Create()
-- [[ Creates the user interface. ]]
InNumber = self:AddInput("Number" , "Number" , {
InRadians = self:AddInput("Radians" , "Radians" , {
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
LINK_Main = 1,
Expand Down Expand Up @@ -59,13 +59,13 @@ function NotifyChanged(inp, param, time)
if inp == InShowInput then
local visible
if param.Value == 1.0 then visible = true else visible = false end
InNumber:SetAttrs({LINK_Visible = visible})
InRadians:SetAttrs({LINK_Visible = visible})
end
end

function Process(req)
-- [[ Creates the output. ]]
local n = InNumber:GetValue(req).Value
local n = InRadians:GetValue(req).Value

local result = math.tan(n)
local out = Number(result)
Expand Down

0 comments on commit 0954cd4

Please sign in to comment.