Skip to content

Commit

Permalink
add wpilib constructor for transform 3d
Browse files Browse the repository at this point in the history
  • Loading branch information
sswadkar committed Jan 12, 2023
1 parent d4a6287 commit 7b5e405
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ publishing {
release(MavenPublication) {
groupId = 'org.team4099'
artifactId = 'falconutils'
version = '1.0.2'
version = '1.0.3'

from(components["kotlin"])
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/org/team4099/lib/geometry/Transform3d.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Transform3d(val translation: Translation3d, val rotation: Rotation3d) {
last.rotation.minus(initial.rotation)
)

constructor(
transform3dWPILIB: Transform3dWPILIB
) : this(Translation3d(transform3dWPILIB.translation), Rotation3d(transform3dWPILIB.rotation)) {}

constructor() : this(Translation3d(), Rotation3d())

operator fun times(scalar: Double): Transform3d {
Expand Down

0 comments on commit 7b5e405

Please sign in to comment.