diff options
author | ubq323 <ubq323@ubq323.website> | 2024-01-05 02:50:22 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-01-05 02:50:22 +0000 |
commit | 727b0648d8101ec570a53cabc7e1bb8f195fe08c (patch) | |
tree | f5aedd67ed2bc6598eeba6eea57efda7183ce70d /hsluv.lua | |
parent | 458895d38c99e669c654d189f1761011ba5f389c (diff) |
lots of ui
Diffstat (limited to 'hsluv.lua')
-rw-r--r-- | hsluv.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,16 +20,16 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -hsluv = {} +local hsluv = {} -hexChars = "0123456789abcdef" +local hexChars = "0123456789abcdef" -distance_line_from_origin = function(line) +local distance_line_from_origin = function(line) return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1) end -length_of_ray_until_intersect = function(theta, line) +local length_of_ray_until_intersect = function(theta, line) return line.intercept / (math.sin(theta) - line.slope * math.cos(theta)) end |