Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
7b3cfddc
Commit
7b3cfddc
authored
6 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
added transform function to Plane
parent
974d1eba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VirtualRobot/math/Plane.cpp
+4
-3
4 additions, 3 deletions
VirtualRobot/math/Plane.cpp
VirtualRobot/math/Plane.h
+1
-1
1 addition, 1 deletion
VirtualRobot/math/Plane.h
with
5 additions
and
4 deletions
VirtualRobot/math/Plane.cpp
+
4
−
3
View file @
7b3cfddc
...
...
@@ -101,6 +101,7 @@ Plane Plane::FromNormal(Eigen::Vector3f pos, Eigen::Vector3f normal)
return
Plane
(
pos
,
d1
,
d2
);
}
math
::
Plane
math
::
Plane
::
Transform
(
const
Eigen
::
Matrix4f
&
transform
)
{
return
Plane
((
transform
*
Eigen
::
Vector4f
(
pos
(
0
),
pos
(
1
),
pos
(
2
),
1
)).
block
<
3
,
1
>
(
0
,
0
),
transform
.
block
<
3
,
3
>
(
0
,
0
)
*
dir1
,
transform
.
block
<
3
,
3
>
(
0
,
0
)
*
dir2
);
}
This diff is collapsed.
Click to expand it.
VirtualRobot/math/Plane.h
+
1
−
1
View file @
7b3cfddc
...
...
@@ -44,7 +44,7 @@ public:
Eigen
::
Vector3f
Dir1
(){
return
dir1
;}
Eigen
::
Vector3f
Dir2
(){
return
dir2
;}
Plane
Transform
(
const
Eigen
::
Matrix4f
&
transform
);
Eigen
::
Vector3f
GetPoint
(
float
u
,
float
v
)
override
;
Eigen
::
Vector3f
GetDdu
(
float
u
,
float
v
)
override
;
Eigen
::
Vector3f
GetDdv
(
float
u
,
float
v
)
override
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment