Package org.ironmaple.utils.mathutils
Class GeometryConvertor
java.lang.Object
org.ironmaple.utils.mathutils.GeometryConvertor
utils to convert between WPILIB and dyn4j geometry classes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Translation2d
getChassisSpeedsTranslationalComponent
(ChassisSpeeds chassisSpeeds) static org.dyn4j.geometry.Vector2
toDyn4jLinearVelocity
(ChassisSpeeds wpilibChassisSpeeds) static org.dyn4j.geometry.Rotation
toDyn4jRotation
(Rotation2d wpilibRotation2d) static org.dyn4j.geometry.Transform
toDyn4jTransform
(Pose2d wpilibPose2d) static org.dyn4j.geometry.Vector2
toDyn4jVector2
(Translation2d wpilibTranslation2d) static ChassisSpeeds
toWpilibChassisSpeeds
(org.dyn4j.geometry.Vector2 dyn4jLinearVelocity, double angularVelocityRadPerSec) static Pose2d
toWpilibPose2d
(org.dyn4j.geometry.Transform dyn4jTransform) static Rotation2d
toWpilibRotation2d
(org.dyn4j.geometry.Rotation dyn4jRotation) static Translation2d
toWpilibTranslation2d
(org.dyn4j.geometry.Vector2 dyn4jVector2)
-
Constructor Details
-
GeometryConvertor
public GeometryConvertor()
-
-
Method Details
-
toDyn4jVector2
-
toWpilibTranslation2d
-
toDyn4jRotation
-
toWpilibRotation2d
-
toDyn4jTransform
-
toWpilibPose2d
-
toDyn4jLinearVelocity
-
toWpilibChassisSpeeds
public static ChassisSpeeds toWpilibChassisSpeeds(org.dyn4j.geometry.Vector2 dyn4jLinearVelocity, double angularVelocityRadPerSec) -
getChassisSpeedsTranslationalComponent
-