Skip to content

Commit 2ec1553

Browse files
committed
Use simplified Eigen data logging
1 parent ce147a1 commit 2ec1553

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main() {
7878
projection_matrix(1, 2) = (height - 1) / 2.0;
7979
rec.log(
8080
"world/camera",
81-
rerun::Pinhole(rerun::components::PinholeProjection(*(float(*)[9])projection_matrix.data()))
81+
rerun::Pinhole(rerun::components::PinholeProjection(projection_matrix.data()))
8282
.with_resolution(rerun::components::Resolution({width, height}))
8383
);
8484
Eigen::Vector3f camera_position{0.0, -1.0, 0.0};
@@ -92,8 +92,8 @@ int main() {
9292
rec.log(
9393
"world/camera",
9494
rerun::Transform3D(
95-
rerun::datatypes::Vec3D(*(float(*)[3])camera_position.data()),
96-
rerun::datatypes::Mat3x3(*(float(*)[9])camera_orientation.data())
95+
rerun::datatypes::Vec3D(camera_position.data()),
96+
rerun::datatypes::Mat3x3(camera_orientation.data())
9797
)
9898
);
9999

0 commit comments

Comments
 (0)