mirror of https://github.com/mode777/rayjs.git
1 line
20 KiB
JSON
1 line
20 KiB
JSON
|
[{"returnType":"float","name":"Clamp","params":[{"name":"value","type":"float"},{"name":"min","type":"float"},{"name":"max","type":"float"}],"description":"Clamp float value"},{"returnType":"float","name":"Lerp","params":[{"name":"start","type":"float"},{"name":"end","type":"float"},{"name":"amount","type":"float"}],"description":"Calculate linear interpolation between two floats"},{"returnType":"float","name":"Normalize","params":[{"name":"value","type":"float"},{"name":"start","type":"float"},{"name":"end","type":"float"}],"description":"Normalize input value within input range"},{"returnType":"float","name":"Remap","params":[{"name":"value","type":"float"},{"name":"inputStart","type":"float"},{"name":"inputEnd","type":"float"},{"name":"outputStart","type":"float"},{"name":"outputEnd","type":"float"}],"description":"Remap input value within input range to output range"},{"returnType":"float","name":"Wrap","params":[{"name":"value","type":"float"},{"name":"min","type":"float"},{"name":"max","type":"float"}],"description":"Wrap input value from min to max"},{"returnType":"int","name":"FloatEquals","params":[{"name":"x","type":"float"},{"name":"y","type":"float"}],"description":"Check whether two given floats are almost equal"},{"returnType":"Vector2","name":"Vector2Zero","params":[],"description":"Vector with components value 0.0f"},{"returnType":"Vector2","name":"Vector2One","params":[],"description":"Vector with components value 1.0f"},{"returnType":"Vector2","name":"Vector2Add","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Add two vectors (v1 + v2)"},{"returnType":"Vector2","name":"Vector2AddValue","params":[{"name":"v","type":"Vector2"},{"name":"add","type":"float"}],"description":"Add vector and float value"},{"returnType":"Vector2","name":"Vector2Subtract","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Subtract two vectors (v1 - v2)"},{"returnType":"Vector2","name":"Vector2SubtractValue","params":[{"name":"v","type":"Vector2"},{"name":"sub","type":"float"}],"description":"Subtract vector by float value"},{"returnType":"float","name":"Vector2Length","params":[{"name":"v","type":"Vector2"}],"description":"Calculate vector length"},{"returnType":"float","name":"Vector2LengthSqr","params":[{"name":"v","type":"Vector2"}],"description":"Calculate vector square length"},{"returnType":"float","name":"Vector2DotProduct","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Calculate two vectors dot product"},{"returnType":"float","name":"Vector2Distance","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Calculate distance between two vectors"},{"returnType":"float","name":"Vector2DistanceSqr","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Calculate square distance between two vectors"},{"returnType":"float","name":"Vector2Angle","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Calculate angle between two vectors\nNOTE: Angle is calculated from origin point (0, 0)"},{"returnType":"float","name":"Vector2LineAngle","params":[{"name":"start","type":"Vector2"},{"name":"end","type":"Vector2"}],"description":"Calculate angle defined by a two vectors line\nNOTE: Parameters need to be normalized\nCurrent implementation should be aligned with glm::angle"},{"returnType":"Vector2","name":"Vector2Scale","params":[{"name":"v","type":"Vector2"},{"name":"scale","type":"float"}],"description":"Scale vector (multiply by value)"},{"returnType":"Vector2","name":"Vector2Multiply","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Multiply vector by vector"},{"returnType":"Vector2","name":"Vector2Negate","params":[{"name":"v","type":"Vector2"}],"description":"Negate vector"},{"returnType":"Vector2","name":"Vector2Divide","params":[{"name":"v1","type":"Vector2"},{"name":"v2","type":"Vector2"}],"description":"Divide vector by vector"},{"returnType":"Vector2","name":"Vector2Normal
|