Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename names to be more readable #43

Merged
merged 2 commits into from
Jun 17, 2023
Merged

Rename names to be more readable #43

merged 2 commits into from
Jun 17, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jun 17, 2023

This renames lots of names to be more readable, clear and consistent. Longer names are typically better than shortened names as long as they are clear and not too long (think Java).

Changed names

  • PosPosition
  • RotRotation
  • PrevPosPreviousPosition
  • PrevRotPreviousRotation
  • LinVelLinearVelocity
  • AngVelAngularVelocity
  • PreSolveLinVelPreSolveLinearVelocity
  • PreSolveAngVelPreSolveAngularVelocity
  • InvMassInverseMass
  • InvInertiaInverseInertia
  • LocalComCenterOfMass
  • MassPropsBundleMassPropertiesBundle
  • PrevColliderMassPropertiesPreviousColliderMassProperties
  • NumSubstepsSubstepCount
  • NumPosItersIterationCount
  • SubsteppingSetSubstepSet
  • Rotation method .inv().inverse()

- `Pos` → `Position`
- `Rot` → `Rotation`
- `PrevPos` → `PreviousPosition`
- `PrevRot` → `PreviousRotation`
- `LinVel` → `LinearVelocity`
- `AngVel` → `AngularVelocity`
- `PreSolveLinVel` → `PreSolveLinearVelocity`
- `PreSolveAngVel` → `PreSolveAngularVelocity`
- `InvMass` → `InverseMass`
- `InvInertia` → `InverseInertia`
- `LocalCom` → `CenterOfMass`
- `MassPropsBundle` → `MassPropertiesBundle`
- `NumSubsteps` → `SubstepCount`
- `NumPosIters` → `IterationCount`
- `SubsteppingSet` → `SubstepSet`
@Jondolf Jondolf added the C-Enhancement New feature or request label Jun 17, 2023
@Jondolf Jondolf changed the title Rename components and resources to be more readable Rename names to be more readable Jun 17, 2023
@Jondolf Jondolf merged commit 029b041 into main Jun 17, 2023
@Jondolf Jondolf deleted the longer-component-names branch June 17, 2023 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant