Hi Guys,
I have written a loop that determines in which triangle the user input lays:
If the if-clause is invalid it will increase j and try the next triangle which will be just next to the smaller one.
Ok that works, but if I want to determine the exact match it get hard:
I need more that just knowing ok, its the first triangle, the second i.e low or high. What I need is i.e if user input is 2 (and it is hence in the first triangle) than what is the y value (in the image above it would be 80). How do I get this 80 ?
Any suggestions ?
Many thanks,
Polynaux
I have written a loop that determines in which triangle the user input lays:
VB.NET:
Dim TotalAttr As Integer = 2
For Each item As String In CriteriaAttributeNames
If inputAssessment < j * (10 / TotalAttr) Then
inputAssessmentMembership = CriteriaAttributeNames(k).ToString
Exit For
End If
j = +1
k = +1
Next item
If the if-clause is invalid it will increase j and try the next triangle which will be just next to the smaller one.
Ok that works, but if I want to determine the exact match it get hard:
I need more that just knowing ok, its the first triangle, the second i.e low or high. What I need is i.e if user input is 2 (and it is hence in the first triangle) than what is the y value (in the image above it would be 80). How do I get this 80 ?
Any suggestions ?
Many thanks,
Polynaux
Last edited by a moderator: