rayjs/bindings/raylib_math_api.json

1664 lines
35 KiB
JSON
Raw Normal View History

2023-05-14 20:19:47 +00:00
[
{
"name": "Clamp",
"returnType": "float",
"params": [
{
"name": "value",
"type": "float"
},
{
"name": "min",
"type": "float"
},
{
"name": "max",
"type": "float"
}
],
"description": ""
},
{
"name": "Lerp",
"returnType": "float",
"params": [
{
"name": "start",
"type": "float"
},
{
"name": "end",
"type": "float"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "Normalize",
"returnType": "float",
"params": [
{
"name": "value",
"type": "float"
},
{
"name": "start",
"type": "float"
},
{
"name": "end",
"type": "float"
}
],
"description": ""
},
{
"name": "Remap",
"returnType": "float",
"params": [
{
"name": "value",
"type": "float"
},
{
"name": "inputStart",
"type": "float"
},
{
"name": "inputEnd",
"type": "float"
},
{
"name": "outputStart",
"type": "float"
},
{
"name": "outputEnd",
"type": "float"
}
],
"description": ""
},
{
"name": "Wrap",
"returnType": "float",
"params": [
{
"name": "value",
"type": "float"
},
{
"name": "min",
"type": "float"
},
{
"name": "max",
"type": "float"
}
],
"description": ""
},
{
"name": "FloatEquals",
"returnType": "int",
"params": [
{
"name": "x",
"type": "float"
},
{
"name": "y",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Zero",
"returnType": "Vector2",
"params": [],
"description": ""
},
{
"name": "Vector2One",
"returnType": "Vector2",
"params": [],
"description": ""
},
{
"name": "Vector2Add",
"returnType": "Vector2",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2AddValue",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "add",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Subtract",
"returnType": "Vector2",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2SubtractValue",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "sub",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Length",
"returnType": "float",
"params": [
{
"name": "v",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2LengthSqr",
"returnType": "float",
"params": [
{
"name": "v",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2DotProduct",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Distance",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2DistanceSqr",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Angle",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2LineAngle",
"returnType": "float",
"params": [
{
"name": "start",
"type": "Vector2"
},
{
"name": "end",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Scale",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "scale",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Multiply",
"returnType": "Vector2",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Negate",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Divide",
"returnType": "Vector2",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Normalize",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Transform",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "Vector2Lerp",
"returnType": "Vector2",
"params": [
{
"name": "v1",
"type": "Vector2"
},
{
"name": "v2",
"type": "Vector2"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Reflect",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "normal",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Rotate",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2MoveTowards",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "target",
"type": "Vector2"
},
{
"name": "maxDistance",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Invert",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2Clamp",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "min",
"type": "Vector2"
},
{
"name": "max",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector2ClampValue",
"returnType": "Vector2",
"params": [
{
"name": "v",
"type": "Vector2"
},
{
"name": "min",
"type": "float"
},
{
"name": "max",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector2Equals",
"returnType": "int",
"params": [
{
"name": "p",
"type": "Vector2"
},
{
"name": "q",
"type": "Vector2"
}
],
"description": ""
},
{
"name": "Vector3Zero",
"returnType": "Vector3",
"params": [],
"description": ""
},
{
"name": "Vector3One",
"returnType": "Vector3",
"params": [],
"description": ""
},
{
"name": "Vector3Add",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3AddValue",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "add",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Subtract",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3SubtractValue",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "sub",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Scale",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "scalar",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Multiply",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3CrossProduct",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Perpendicular",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Length",
"returnType": "float",
"params": [
{
"name": "v",
"type": "const Vector3"
}
],
"description": ""
},
{
"name": "Vector3LengthSqr",
"returnType": "float",
"params": [
{
"name": "v",
"type": "const Vector3"
}
],
"description": ""
},
{
"name": "Vector3DotProduct",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Distance",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3DistanceSqr",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Angle",
"returnType": "float",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Negate",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Divide",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Normalize",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3OrthoNormalize",
"returnType": "void",
"params": [
{
"name": "v1",
"type": "Vector3 *"
},
{
"name": "v2",
"type": "Vector3 *"
}
],
"description": ""
},
{
"name": "Vector3Transform",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "Vector3RotateByQuaternion",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "Vector3RotateByAxisAngle",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "axis",
"type": "Vector3"
},
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Lerp",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Reflect",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "normal",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Min",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Max",
"returnType": "Vector3",
"params": [
{
"name": "v1",
"type": "Vector3"
},
{
"name": "v2",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Barycenter",
"returnType": "Vector3",
"params": [
{
"name": "p",
"type": "Vector3"
},
{
"name": "a",
"type": "Vector3"
},
{
"name": "b",
"type": "Vector3"
},
{
"name": "c",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Unproject",
"returnType": "Vector3",
"params": [
{
"name": "source",
"type": "Vector3"
},
{
"name": "projection",
"type": "Matrix"
},
{
"name": "view",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "Vector3ToFloatV",
"returnType": "float3",
"params": [
{
"name": "v",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Invert",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Clamp",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "min",
"type": "Vector3"
},
{
"name": "max",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3ClampValue",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "min",
"type": "float"
},
{
"name": "max",
"type": "float"
}
],
"description": ""
},
{
"name": "Vector3Equals",
"returnType": "int",
"params": [
{
"name": "p",
"type": "Vector3"
},
{
"name": "q",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "Vector3Refract",
"returnType": "Vector3",
"params": [
{
"name": "v",
"type": "Vector3"
},
{
"name": "n",
"type": "Vector3"
},
{
"name": "r",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixDeterminant",
"returnType": "float",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixTrace",
"returnType": "float",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixTranspose",
"returnType": "Matrix",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixInvert",
"returnType": "Matrix",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixIdentity",
"returnType": "Matrix",
"params": [],
"description": ""
},
{
"name": "MatrixAdd",
"returnType": "Matrix",
"params": [
{
"name": "left",
"type": "Matrix"
},
{
"name": "right",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixSubtract",
"returnType": "Matrix",
"params": [
{
"name": "left",
"type": "Matrix"
},
{
"name": "right",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixMultiply",
"returnType": "Matrix",
"params": [
{
"name": "left",
"type": "Matrix"
},
{
"name": "right",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "MatrixTranslate",
"returnType": "Matrix",
"params": [
{
"name": "x",
"type": "float"
},
{
"name": "y",
"type": "float"
},
{
"name": "z",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixRotate",
"returnType": "Matrix",
"params": [
{
"name": "axis",
"type": "Vector3"
},
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixRotateX",
"returnType": "Matrix",
"params": [
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixRotateY",
"returnType": "Matrix",
"params": [
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixRotateZ",
"returnType": "Matrix",
"params": [
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixRotateXYZ",
"returnType": "Matrix",
"params": [
{
"name": "angle",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "MatrixRotateZYX",
"returnType": "Matrix",
"params": [
{
"name": "angle",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "MatrixScale",
"returnType": "Matrix",
"params": [
{
"name": "x",
"type": "float"
},
{
"name": "y",
"type": "float"
},
{
"name": "z",
"type": "float"
}
],
"description": ""
},
{
"name": "MatrixFrustum",
"returnType": "Matrix",
"params": [
{
"name": "left",
"type": "double"
},
{
"name": "right",
"type": "double"
},
{
"name": "bottom",
"type": "double"
},
{
"name": "top",
"type": "double"
},
{
"name": "near",
"type": "double"
},
{
"name": "far",
"type": "double"
}
],
"description": ""
},
{
"name": "MatrixPerspective",
"returnType": "Matrix",
"params": [
{
"name": "fovy",
"type": "double"
},
{
"name": "aspect",
"type": "double"
},
{
"name": "near",
"type": "double"
},
{
"name": "far",
"type": "double"
}
],
"description": ""
},
{
"name": "MatrixOrtho",
"returnType": "Matrix",
"params": [
{
"name": "left",
"type": "double"
},
{
"name": "right",
"type": "double"
},
{
"name": "bottom",
"type": "double"
},
{
"name": "top",
"type": "double"
},
{
"name": "near",
"type": "double"
},
{
"name": "far",
"type": "double"
}
],
"description": ""
},
{
"name": "MatrixLookAt",
"returnType": "Matrix",
"params": [
{
"name": "eye",
"type": "Vector3"
},
{
"name": "target",
"type": "Vector3"
},
{
"name": "up",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "MatrixToFloatV",
"returnType": "float16",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "QuaternionAdd",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionAddValue",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
},
{
"name": "add",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionSubtract",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionSubtractValue",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
},
{
"name": "sub",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionIdentity",
"returnType": "Quaternion",
"params": [],
"description": ""
},
{
"name": "QuaternionLength",
"returnType": "float",
"params": [
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionNormalize",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionInvert",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionMultiply",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionScale",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
},
{
"name": "mul",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionDivide",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionLerp",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionNlerp",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionSlerp",
"returnType": "Quaternion",
"params": [
{
"name": "q1",
"type": "Quaternion"
},
{
"name": "q2",
"type": "Quaternion"
},
{
"name": "amount",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionFromVector3ToVector3",
"returnType": "Quaternion",
"params": [
{
"name": "from",
"type": "Vector3"
},
{
"name": "to",
"type": "Vector3"
}
],
"description": ""
},
{
"name": "QuaternionFromMatrix",
"returnType": "Quaternion",
"params": [
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "QuaternionToMatrix",
"returnType": "Matrix",
"params": [
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionFromAxisAngle",
"returnType": "Quaternion",
"params": [
{
"name": "axis",
"type": "Vector3"
},
{
"name": "angle",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionToAxisAngle",
"returnType": "void",
"params": [
{
"name": "q",
"type": "Quaternion"
},
{
"name": "outAxis",
"type": "Vector3 *"
},
{
"name": "outAngle",
"type": "float *"
}
],
"description": ""
},
{
"name": "QuaternionFromEuler",
"returnType": "Quaternion",
"params": [
{
"name": "pitch",
"type": "float"
},
{
"name": "yaw",
"type": "float"
},
{
"name": "roll",
"type": "float"
}
],
"description": ""
},
{
"name": "QuaternionToEuler",
"returnType": "Vector3",
"params": [
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
},
{
"name": "QuaternionTransform",
"returnType": "Quaternion",
"params": [
{
"name": "q",
"type": "Quaternion"
},
{
"name": "mat",
"type": "Matrix"
}
],
"description": ""
},
{
"name": "QuaternionEquals",
"returnType": "int",
"params": [
{
"name": "p",
"type": "Quaternion"
},
{
"name": "q",
"type": "Quaternion"
}
],
"description": ""
}
]