mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
temp stuff
This commit is contained in:
@@ -1590,6 +1590,26 @@
|
||||
"entity-actor-lookup",
|
||||
"Get an `entity-actor` from a lump by name and index, return #f if invalid.\nThe lump can contain either an actor name or aid."
|
||||
],
|
||||
"forward-down->inv-matrix": [
|
||||
"forward-down->inv-matrix",
|
||||
"Create transformation matrix where `fwd` is forward and `dn` is down. If these are not perpendicular, `fwd`\ndetermines the pitch of the frame."
|
||||
],
|
||||
"forward-down-nopitch->inv-matrix": [
|
||||
"forward-down-nopitch->inv-matrix",
|
||||
"Create transformation matrix where `fwd` is forward and `dn` is down. If these are not perpendicular, `dn`\ndetermines the pitch of the frame."
|
||||
],
|
||||
"forward-up->quaternion": [
|
||||
"forward-up->quaternion",
|
||||
"Create the inverse transform for a coordinate frame where `fwd` is forward and `up` is up.\nUses the pitch of `fwd` to determine pitch when axes aren't perpendicular."
|
||||
],
|
||||
"forward-up-nopitch->inv-matrix": [
|
||||
"forward-up-nopitch->inv-matrix",
|
||||
"Create the inverse transform for a coordinate frame where `fwd` is forward and `up` is up.\nUses the pitch of `up` to determine pitch when axes aren't perpendicular."
|
||||
],
|
||||
"forward-up-nopitch->quaternion": [
|
||||
"forward-up-nopitch->quaternion",
|
||||
"Create the inverse transform for a coordinate frame where `fwd` is forward and `up` is up.\nUses the pitch of `up` to determine pitch when axes aren't perpendicular."
|
||||
],
|
||||
"handle->process-safe": [
|
||||
"handle->process-safe",
|
||||
"Strange unused implementation of `handle->process`."
|
||||
@@ -1626,6 +1646,30 @@
|
||||
"matrix->quaternion",
|
||||
"Convert rotation matrix to quaternion."
|
||||
],
|
||||
"matrix-from-two-vectors!": [
|
||||
"matrix-from-two-vectors!",
|
||||
"Create a rotation matrix representing the rotation between two vectors."
|
||||
],
|
||||
"matrix-from-two-vectors-max-angle!": [
|
||||
"matrix-from-two-vectors-max-angle!",
|
||||
"Create a rotation matrix representing the rotation between two vectors, allowing at most a rotation of\n`max-rot` degrees."
|
||||
],
|
||||
"matrix-from-two-vectors-max-angle-partial!": [
|
||||
"matrix-from-two-vectors-max-angle-partial!",
|
||||
"Create a rotation matrix representing fraction `frac` of the rotation between `a` and `b`, limited to\n`max-rot` degrees."
|
||||
],
|
||||
"matrix-from-two-vectors-partial-linear!": [
|
||||
"matrix-from-two-vectors-partial-linear!",
|
||||
"Create a rotation matrix representing fraction `frac` of the rotation from `a` to `b`."
|
||||
],
|
||||
"matrix-remove-z-rot": [
|
||||
"matrix-remove-z-rot",
|
||||
"Remove z rotation (roll) from a matrix. Not sure how this works, it's unused and I think it could be wrong."
|
||||
],
|
||||
"matrix-rot-diff!": [
|
||||
"matrix-rot-diff!",
|
||||
"Get the rotation between two matrices, in degrees. Returns the rotation axis in `axis`."
|
||||
],
|
||||
"matrix-with-scale->quaternion": [
|
||||
"matrix-with-scale->quaternion",
|
||||
"Convert a matrix which contains scaling in addition to rotation to a quaternion."
|
||||
@@ -1634,6 +1678,10 @@
|
||||
"name=",
|
||||
"Are `a` and `b` the same name? This works for strings and symbols."
|
||||
],
|
||||
"normal-of-plane": [
|
||||
"normal-of-plane",
|
||||
"Compute normal of plane given three points on it."
|
||||
],
|
||||
"point-in-air-box-area?": [
|
||||
"point-in-air-box-area?",
|
||||
"Check if point `x, z` (relative to air-box origin) is within the projected area of the air-box. Effectively doesn't check height."
|
||||
@@ -1646,6 +1694,10 @@
|
||||
"point-in-air?",
|
||||
"Check if `pt` is in any of the boxes."
|
||||
],
|
||||
"point-in-plane-<-point+normal!": [
|
||||
"point-in-plane-<-point+normal!",
|
||||
"Given a plane's normal and `p0` a point on the plane, generate a second point on the plane.\nThe generated point is somewhat arbitrary - it is spaced out by 1 meter on the two axes that are least\nparallel to the plane's normal (avoiding numerical issues)"
|
||||
],
|
||||
"points-in-air?": [
|
||||
"points-in-air?",
|
||||
"Are both `p1` and `p2` inside any of the boxes?"
|
||||
@@ -1702,6 +1754,14 @@
|
||||
"quaternion-float/!",
|
||||
"Divide each element in the quaternion by `x`."
|
||||
],
|
||||
"quaternion-from-two-vectors!": [
|
||||
"quaternion-from-two-vectors!",
|
||||
"Create a quaternion representing the rotation between two vectors."
|
||||
],
|
||||
"quaternion-from-two-vectors-max-angle!": [
|
||||
"quaternion-from-two-vectors-max-angle!",
|
||||
"Create a quaternion representing the rotation between two vectors, allowing at most a rotation of `max-rot`\ndegrees."
|
||||
],
|
||||
"quaternion-i!": [
|
||||
"quaternion-i!",
|
||||
"Create unit `i` quaternion."
|
||||
@@ -1782,6 +1842,10 @@
|
||||
"quaternion-rotate-z!",
|
||||
"Rotate existing quaternion along world z-axis."
|
||||
],
|
||||
"quaternion-seek": [
|
||||
"quaternion-seek",
|
||||
"Unused function to seek toward an orientation."
|
||||
],
|
||||
"quaternion-set!": [
|
||||
"quaternion-set!",
|
||||
"Set quaternion components."
|
||||
@@ -1818,6 +1882,10 @@
|
||||
"quaternion-zxy!",
|
||||
"Make a quaternion from a sequence of z, x, y axis rotations."
|
||||
],
|
||||
"set-eul!": [
|
||||
"set-eul!",
|
||||
"Set euler angles and a flag (as a float)."
|
||||
],
|
||||
"string->int": [
|
||||
"string->int",
|
||||
"String to int. Supports binary, hex, and decimal, and negatives."
|
||||
@@ -1890,14 +1958,42 @@
|
||||
"string>?",
|
||||
"In dictionary order, is a > b?"
|
||||
],
|
||||
"vector-3pt-cross!": [
|
||||
"vector-3pt-cross!",
|
||||
"Cross product of (2 - 1) and (3 - 1), giving a vector in the direction of the plane normal, but not\nmagnitude of 1."
|
||||
],
|
||||
"vector-angle<-quaternion!": [
|
||||
"vector-angle<-quaternion!",
|
||||
"Convert quaternion into axis-angle with normalized axis and angle in radians in `w`."
|
||||
],
|
||||
"vector-deg-seek": [
|
||||
"vector-deg-seek",
|
||||
"Move `vec1` toward `vec0` by rotating it by at most `max-rot` degrees."
|
||||
],
|
||||
"vector-deg-slerp": [
|
||||
"vector-deg-slerp",
|
||||
"Spherical linear interpolation of orientations represented as the z-axis of two frames."
|
||||
],
|
||||
"vector-line-distance": [
|
||||
"vector-line-distance",
|
||||
"Compute the distance between `query` and the closest point on the infinite line containing `p0` and `p1`."
|
||||
],
|
||||
"vector-line-distance-point!": [
|
||||
"vector-line-distance-point!",
|
||||
"Compute the distance between `query` and the closest point on the infinite line containing `p0` and `p1`.\nReturn the point in `ret`."
|
||||
],
|
||||
"vector-orient-by-quat!": [
|
||||
"vector-orient-by-quat!",
|
||||
"Rotate a vector by a quaternion."
|
||||
],
|
||||
"vector-rotate-y!": [
|
||||
"vector-rotate-y!",
|
||||
"Rotate a vector along the y-axis, not very efficient."
|
||||
],
|
||||
"vector-vector-deg-slerp!": [
|
||||
"vector-vector-deg-slerp!",
|
||||
"Spherical linear interpolation of coordinate frames produced by `(forward-up vec up)`."
|
||||
],
|
||||
"vector-x-angle": [
|
||||
"vector-x-angle",
|
||||
"Get the pitch angle of a vector."
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user