samp@phazer 7ca5050e5d init il y a 2 ans
..
YSI 7ca5050e5d init il y a 2 ans
YSI_AC 7ca5050e5d init il y a 2 ans
YSI_Coding 7ca5050e5d init il y a 2 ans
YSI_Core 7ca5050e5d init il y a 2 ans
YSI_Data 7ca5050e5d init il y a 2 ans
YSI_Extra 7ca5050e5d init il y a 2 ans
YSI_Game 7ca5050e5d init il y a 2 ans
YSI_Internal 7ca5050e5d init il y a 2 ans
YSI_Players 7ca5050e5d init il y a 2 ans
YSI_Server 7ca5050e5d init il y a 2 ans
YSI_Storage 7ca5050e5d init il y a 2 ans
YSI_Visual 7ca5050e5d init il y a 2 ans
.editorconfig 7ca5050e5d init il y a 2 ans
.gitattributes 7ca5050e5d init il y a 2 ans
.gitignore 7ca5050e5d init il y a 2 ans
.gitmodules 7ca5050e5d init il y a 2 ans
3DTryg.inc 7ca5050e5d init il y a 2 ans
EVF.inc 7ca5050e5d init il y a 2 ans
EVF2.inc 7ca5050e5d init il y a 2 ans
FCNPC.inc 7ca5050e5d init il y a 2 ans
GPS.inc 7ca5050e5d init il y a 2 ans
LICENSE 7ca5050e5d init il y a 2 ans
OPA.inc 7ca5050e5d init il y a 2 ans
OnVehicleModEx.inc 7ca5050e5d init il y a 2 ans
Pawn.CMD.inc 7ca5050e5d init il y a 2 ans
README.md 7ca5050e5d init il y a 2 ans
TDE.dll 7ca5050e5d init il y a 2 ans
VPP.inc 7ca5050e5d init il y a 2 ans
Whirlpool.dll 7ca5050e5d init il y a 2 ans
Whirlpool.so 7ca5050e5d init il y a 2 ans
YSI_COMPATIBILTY_MODE.md 7ca5050e5d init il y a 2 ans
a_mysql.inc 7ca5050e5d init il y a 2 ans
actor_robbery.inc 7ca5050e5d init il y a 2 ans
artconfig.inc 7ca5050e5d init il y a 2 ans
bcrypt.inc 7ca5050e5d init il y a 2 ans
colandreas.inc 7ca5050e5d init il y a 2 ans
compat.inc 7ca5050e5d init il y a 2 ans
crashdetect.dll 7ca5050e5d init il y a 2 ans
crashdetect.inc 7ca5050e5d init il y a 2 ans
crashdetect.so 7ca5050e5d init il y a 2 ans
discord-connector.inc 7ca5050e5d init il y a 2 ans
easyDialog.inc 7ca5050e5d init il y a 2 ans
evi.inc 7ca5050e5d init il y a 2 ans
fader.inc 7ca5050e5d init il y a 2 ans
filemanager.inc 7ca5050e5d init il y a 2 ans
foreach.inc 7ca5050e5d init il y a 2 ans
foreach1.inc 7ca5050e5d init il y a 2 ans
iTD.dll 7ca5050e5d init il y a 2 ans
installation.md 7ca5050e5d init il y a 2 ans
izcmd.inc 7ca5050e5d init il y a 2 ans
logger.inc 7ca5050e5d init il y a 2 ans
mSelection.inc 7ca5050e5d init il y a 2 ans
mapandreas.inc 7ca5050e5d init il y a 2 ans
mysql.dll 7ca5050e5d init il y a 2 ans
mysql.pdb 7ca5050e5d init il y a 2 ans
mysql.so 7ca5050e5d init il y a 2 ans
mysql_5.5.so 7ca5050e5d init il y a 2 ans
mysql_static.so 7ca5050e5d init il y a 2 ans
nex-ac.inc 7ca5050e5d init il y a 2 ans
nex-ac_en.lang 7ca5050e5d init il y a 2 ans
pawn.json 7ca5050e5d init il y a 2 ans
progress.inc 7ca5050e5d init il y a 2 ans
progress2.inc 7ca5050e5d init il y a 2 ans
rotation_misc.inc 7ca5050e5d init il y a 2 ans
rotations.inc 7ca5050e5d init il y a 2 ans
rotations_version.inc 7ca5050e5d init il y a 2 ans
sqlitei.inc 7ca5050e5d init il y a 2 ans
sscanf.dll 7ca5050e5d init il y a 2 ans
sscanf.inc 7ca5050e5d init il y a 2 ans
sscanf.so 7ca5050e5d init il y a 2 ans
sscanf2.inc 7ca5050e5d init il y a 2 ans
streamer.dll 7ca5050e5d init il y a 2 ans
streamer.inc 7ca5050e5d init il y a 2 ans
streamer.so 7ca5050e5d init il y a 2 ans
stremmer.so 7ca5050e5d init il y a 2 ans
strlib.inc 7ca5050e5d init il y a 2 ans
tde_tdinfo.inc 7ca5050e5d init il y a 2 ans
test.pwn 7ca5050e5d init il y a 2 ans
timestamp.inc 7ca5050e5d init il y a 2 ans
troubleshooting.md 7ca5050e5d init il y a 2 ans
y_als.inc 7ca5050e5d init il y a 2 ans
y_amx.inc 7ca5050e5d init il y a 2 ans
y_areas.inc 7ca5050e5d init il y a 2 ans
y_bintree.inc 7ca5050e5d init il y a 2 ans
y_bit.inc 7ca5050e5d init il y a 2 ans
y_bitmap.inc 7ca5050e5d init il y a 2 ans
y_cell.inc 7ca5050e5d init il y a 2 ans
y_classes.inc 7ca5050e5d init il y a 2 ans
y_colors.inc 7ca5050e5d init il y a 2 ans
y_colours.inc 7ca5050e5d init il y a 2 ans
y_commands.inc 7ca5050e5d init il y a 2 ans
y_debug.inc 7ca5050e5d init il y a 2 ans
y_dialog.inc 7ca5050e5d init il y a 2 ans
y_extra.inc 7ca5050e5d init il y a 2 ans
y_files.inc 7ca5050e5d init il y a 2 ans
y_flooding.inc 7ca5050e5d init il y a 2 ans
y_groups.inc 7ca5050e5d init il y a 2 ans
y_hooks.inc 7ca5050e5d init il y a 2 ans
y_ini.inc 7ca5050e5d init il y a 2 ans
y_inline.inc 7ca5050e5d init il y a 2 ans
y_iterate.inc 7ca5050e5d init il y a 2 ans
y_jaggedarray.inc 7ca5050e5d init il y a 2 ans
y_languages.inc 7ca5050e5d init il y a 2 ans
y_lock.inc 7ca5050e5d init il y a 2 ans
y_malloc.inc 7ca5050e5d init il y a 2 ans
y_master.inc 7ca5050e5d init il y a 2 ans
y_php.inc 7ca5050e5d init il y a 2 ans
y_playerarray.inc 7ca5050e5d init il y a 2 ans
y_playerset.inc 7ca5050e5d init il y a 2 ans
y_properties.inc 7ca5050e5d init il y a 2 ans
y_punycode.inc 7ca5050e5d init il y a 2 ans
y_races.inc 7ca5050e5d init il y a 2 ans
y_remote.inc 7ca5050e5d init il y a 2 ans
y_scriptinit.inc 7ca5050e5d init il y a 2 ans
y_stringhash.inc 7ca5050e5d init il y a 2 ans
y_svar.inc 7ca5050e5d init il y a 2 ans
y_td.inc 7ca5050e5d init il y a 2 ans
y_testing.inc 7ca5050e5d init il y a 2 ans
y_text.inc 7ca5050e5d init il y a 2 ans
y_timers.inc 7ca5050e5d init il y a 2 ans
y_users.inc 7ca5050e5d init il y a 2 ans
y_utils.inc 7ca5050e5d init il y a 2 ans
y_uvar.inc 7ca5050e5d init il y a 2 ans
y_va.inc 7ca5050e5d init il y a 2 ans
y_vehicledata.inc 7ca5050e5d init il y a 2 ans
y_writemem.inc 7ca5050e5d init il y a 2 ans
y_xml.inc 7ca5050e5d init il y a 2 ans
y_zonenames.inc 7ca5050e5d init il y a 2 ans
y_zonepulse.inc 7ca5050e5d init il y a 2 ans
zcmd.inc 7ca5050e5d init il y a 2 ans
zone-data.inc 7ca5050e5d init il y a 2 ans

README.md

rotations

sampctl

This include gives you the possibility to convert rotations

Installation

Simply install to your project:

sampctl package install Shiska/rotations

Include in your code and begin using the library:

#include <rotations>

Functions

RotMatrix...AroundRelPoint

RotMatrixMatrixAroundRelPoint(Float: matrix1[4][4], Float: oX, Float: oY, Float: oZ, Float: matrix2[4][4])
RotMatrixQuatAroundRelPoint(Float: matrix[4][4], Float: oX, Float: oY, Float: oZ, Float: w, Float: x, Float: y, Float: z)
RotMatrixEulerAroundRelPoint(Float: matrix[4][4], Float: oX, Float: oY, Float: oZ, Float: rX, Float: rY, Float: rZ, eulermode: mode = euler_samp)
RotMatrixAxisAroundRelPoint(Float: matrix1[4][4], Float: oX, Float: oY, Float: oZ, Float: angle, Float: aX, Float: aY, Float: aZ)

RotMatrix...AroundPoint

RotMatrixMatrixAroundPoint(Float: matrix1[4][4], Float: x, Float: y, Float: z, Float: matrix2[4][4])
RotMatrixQuatAroundPoint(Float: matrix[4][4], Float: x, Float: y, Float: z, Float: w, Float: qX, Float: qY, Float: qZ)
RotMatrixEulerAroundPoint(Float: matrix[4][4], Float: x, Float: y, Float: z, Float: rX, Float: rY, Float: rZ, eulermode: mode = euler_samp)
RotMatrixAxisAroundPoint(Float: matrix1[4][4], Float: x, Float: y, Float: z, Float: angle, Float: aX, Float: aY, Float: aZ)

TranslateMatrix

TranslateMatrix(Float: matrix[4][4], Float: x, Float: y, Float: z)

RotateMatrix...

RotateMatrixWithMatrix(Float: matrix1[4][4], Float: matrix2[4][4])
RotateMatrixWithQuat(Float: matrix[4][4], Float: w, Float: x, Float: y, Float: z)
RotateMatrixWithEuler(Float: matrix[4][4], Float: rX, Float: rY, Float: rZ, eulermode: mode = euler_samp)
RotateMatrixWithAxisAngle(Float: matrix[4][4], Float: angle, Float: aX, Float: aY, Float: aZ)

GetTranslationMatrix

GetTranslationMatrix(Float: matrix[4][4], Float: x, Float: y, Float: z)

GetRotationMatrix...

GetRotationMatrixFromQuat(Float: matrix[4][4], Float: w, Float: x, Float: y, Float: z)
GetRotationMatrixFromEuler(Float: matrix[4][4], Float: rX, Float: rY, Float: rZ, eulermode: mode = euler_samp)
GetRotationMatrixFromAxisAngle(Float: matrix[4][4], Float: angle, Float: aX, Float: aY, Float: aZ)

GetQuat...

GetQuatFromMatrix(Float: matrix[][], & Float: w, & Float: x, & Float: y, & Float: z)
GetQuatFromEuler(Float: rX, Float: rY, Float: rZ, & Float: w, & Float: x, & Float: y, & Float: z, eulermode: mode = euler_samp)
GetQuatFromAxisAngle(Float: angle, Float: aX, Float: aY, Float: aZ, & Float: w, & Float: x, & Float: y, & Float: z)

GetEuler...

GetEulerFromMatrix(Float: matrix[][], & Float: rX, & Float: rY, & Float: rZ, eulermode: mode = euler_samp)
GetEulerFromQuat(Float: w, Float: x, Float: y, Float: z, & Float: rX, & Float: rY, & Float: rZ, eulermode: mode = euler_samp)
GetEulerFromEuler(Float: oX, Float: oY, Float: oZ, eulermode: omode, & Float: rX, & Float: rY, & Float: rZ, eulermode: mode = euler_samp)
GetEulerFromAxisAngle(Float: angle, Float: aX, Float: aY, Float: aZ, & Float: rX, & Float: rY, & Float: rZ, eulermode: mode = euler_samp)

GetAxisAngle...

GetAxisAngleFromMatrix(Float: matrix[][], & Float: angle, & Float: aX, & Float: aY, & Float: aZ)
GetAxisAngleFromQuat(Float: w, Float: x, Float: y, Float: z, & Float: angle, & Float: aX, & Float: aY, & Float: aZ)
GetAxisAngleFromEuler(Float: rX, Float: rY, Float: rZ, & Float: angle, & Float: aX, & Float: aY, & Float: aZ, eulermode: mode = euler_samp)

...Rotate

MatrixRotate(Float: matrix[4][4], Float: oX, Float: oY, Float: oZ, Float: oT, & Float: X, & Float: Y, & Float: Z)
QuatRotate(Float: w, Float: x, Float: y, Float: z, Float: oX, Float: oY, Float: oZ, & Float: X, & Float: Y, & Float: Z)
EulerRotate(Float: rX, Float: rY, Float: rZ, Float: oX, Float: oY, Float: oZ, & Float: X, & Float: Y, & Float: Z, eulermode: mode = euler_samp)
AxisAngleRotate(Float: angle, Float: aX, Float: aY, Float: aZ, Float: oX, Float: oY, Float: oZ, & Float: X, & Float: Y, & Float: Z)

Testing

To test, simply run the package:

sampctl package run