Skip to main content

A set of classes for physcis variables

Project description

Physics Struct

A package containing set of classes for physics variables

Example
Create instance, default value is (0, 0, 0)

data = vector3D()
data2 = vector3D((1, 2, 3))

Assign new value, can be either list or tuple

data.set([2, 2, 2])

Get data, the function will return a np.array()

  • get_round() return a rounded value
  • dec (optional): the decimal point can be specified, default value is 2
data.get()
data.get_round()
data.get_round(dec= 5)

Print value of each dimension

  • dec (optional): set the decimal point, default value is 2
  • end (optional): same as 'end' parameter in a print() function
data.print()
data.pritn(dec= 3)

Other Classes in the 3D vector space

orientation = orientation_rpy()
# stored data in RPY as radian
# include .get_deg() which return the value in degree

cord = cartesian_vector()
# stored data in XYZ
# include .rotate() to caluculate 3D Euler Rotation
# .set() include increment mode => .set(inc= True)

acc = IMU_acc()
# inherite cartesian_vector()
# .rotate() ignore yaw as IMU linear acceleration does

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physicsstruct-1.0.6.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physicsstruct-1.0.6-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file physicsstruct-1.0.6.tar.gz.

File metadata

  • Download URL: physicsstruct-1.0.6.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for physicsstruct-1.0.6.tar.gz
Algorithm Hash digest
SHA256 dfea4e8165b8ca688e209de97cf2d2aa8ddb9a9b178ee697b33c4498f480f299
MD5 2b1d43cb209035a0471e83c21a6cb8d7
BLAKE2b-256 bd30914961bbcced7bc0060df2b8dfb641891bd92fa14331faaaa78208e8381c

See more details on using hashes here.

File details

Details for the file physicsstruct-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: physicsstruct-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for physicsstruct-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5a517c0bb0d27f3dcdfc96da0df0de93661141e7cde8c821489cb063e15f33
MD5 62e7a46815de324ff74d0ae4e4fdaec6
BLAKE2b-256 cd10405e588aa0a4230142e614872b63b9bbdd89f655f5e4e531fa7982635e2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page