Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
04392fc5
Commit
04392fc5
authored
11 years ago
by
Peter Reischig
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Obsolete function marked for deletion.
Signed-off-by:
Peter Reischig
<
peter.reischig@esrf.fr
>
parent
c429bf6e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Maths/gtMathsVectorsAngles.m
+10
-19
10 additions, 19 deletions
zUtil_Maths/gtMathsVectorsAngles.m
with
10 additions
and
19 deletions
zUtil_Maths/gtMathsVectorsAngles.m
+
10
−
19
View file @
04392fc5
function
angdeg
=
gtMathsVectorsAngles
(
v1
,
v2
)
% GTMATHSVECTORSANGLES Angles in degrees between 3D UNIT vectors.
% Function is out-of-date! Use one of these instead:
% angrad = gtMathsVectorsAnglesRad(v1,v2,colvec)
% angdeg = gtMathsVectorsAnglesDeg(v1,v2,colvec)
%
% FUNCTION angle = gtMathsVectorsAngles(v1,v2s)
%
% Gives the angles between a vector and a set of other vectors.
% Input vectors must be normalised.
%
% INPUT
% v1 - an arbitrary 3D unit vector (1x3)
% v2s - a set of arbitrary 3D unit vectors (nx3)
%
% OUTPUT
% angle - list of angles between v1 and v2s (nx1)
% (in degrees, between 0deg and 90deg)
%
function
angle
=
gtMathsVectorsAngles
(
v1
,
v2s
)
dotprod
=
abs
(
v2s
*
v1
'
);
dotprod
(
dotprod
>
1
)
=
1
;
disp
(
'Function is out-of-date! Use one of these instead:'
)
disp
(
' angrad = gtMathsVectorsAnglesRad(v1,v2,colvec)'
)
disp
(
' angdeg = gtMathsVectorsAnglesDeg(v1,v2,colvec)'
)
angle
=
acosd
(
dotprod
);
error
(
'Function is out-of-date!'
)
end
\ No newline at end of file
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