blob: 1a0258a4be833929669b9bf4cc389d02edfb7d0b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_262) on Thu Oct 29 15:52:03 GMT 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>VectorUtils (Eclipse MOSAIC Parent 20.0 API)</title>
<meta name="date" content="2020-10-29">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="VectorUtils (Eclipse MOSAIC Parent 20.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/VectorUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/mosaic/lib/math/VectorUtils.html" target="_top">Frames</a></li>
<li><a href="VectorUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.mosaic.lib.math</div>
<h2 title="Class VectorUtils" class="title">Class VectorUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.mosaic.lib.math.VectorUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">VectorUtils</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#EAST">EAST</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#NORTH">NORTH</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#SOUTH">SOUTH</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#UP">UP</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#WEST">WEST</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#VectorUtils--">VectorUtils</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#computeXZEdgeIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">computeXZEdgeIntersectionPoint</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e11,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e12,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e21,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e22,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</code>
<div class="block">Similar to <a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#computeXZLineIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-"><code>computeXZLineIntersectionPoint(Vector3d, Vector3d, Vector3d, Vector3d, Vector3d)</code></a>
but also checks if the resulting intersection point lies between e11, e12 and e21, e22.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#computeXZLineIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">computeXZLineIntersectionPoint</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e11,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e12,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e21,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e22,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</code>
<div class="block">Returns the intersection point of two lines in the XZ plane.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#curvature-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">curvature</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecA,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecB,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecC)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#getDirectionVectorFromHeading-double-org.eclipse.mosaic.lib.math.Vector3d-">getDirectionVectorFromHeading</a></span>(double&nbsp;headingDeg,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</code>
<div class="block">Computes an direction vector from the given heading angle (in degrees)</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#getHeadingFromDirection-org.eclipse.mosaic.lib.math.Vector3d-">getHeadingFromDirection</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;directionVec)</code>
<div class="block">Returns heading in degrees for the given direction vector.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#isLeftOfLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">isLeftOfLine</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePoint,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;lineDirection)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#isLeftOfLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">isLeftOfLine</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePoint,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;lineDirection,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;up)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#nearestPointOnLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">nearestPointOnLine</a></span>(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePt1,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePt2,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="NORTH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORTH</h4>
<pre>public static final&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a> NORTH</pre>
</li>
</ul>
<a name="SOUTH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SOUTH</h4>
<pre>public static final&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a> SOUTH</pre>
</li>
</ul>
<a name="EAST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EAST</h4>
<pre>public static final&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a> EAST</pre>
</li>
</ul>
<a name="WEST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WEST</h4>
<pre>public static final&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a> WEST</pre>
</li>
</ul>
<a name="UP">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>UP</h4>
<pre>public static final&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a> UP</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="VectorUtils--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>VectorUtils</h4>
<pre>public&nbsp;VectorUtils()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getHeadingFromDirection-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeadingFromDirection</h4>
<pre>public static&nbsp;double&nbsp;getHeadingFromDirection(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;directionVec)</pre>
<div class="block">Returns heading in degrees for the given direction vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>directionVec</code> - Direction vector to get the heading for</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Heading in degrees (0 = north, 90 = east, 180 = south, 270 = west)</dd>
</dl>
</li>
</ul>
<a name="getDirectionVectorFromHeading-double-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirectionVectorFromHeading</h4>
<pre>public static&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;getDirectionVectorFromHeading(double&nbsp;headingDeg,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</pre>
<div class="block">Computes an direction vector from the given heading angle (in degrees)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>headingDeg</code> - angle in degrees (0 = north, 90 = east, 180 = south, 270 = west)</dd>
<dd><code>result</code> - Vector3d to store the result in</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>result Vector3d</dd>
</dl>
</li>
</ul>
<a name="isLeftOfLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLeftOfLine</h4>
<pre>public static&nbsp;boolean&nbsp;isLeftOfLine(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePoint,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;lineDirection)</pre>
</li>
</ul>
<a name="isLeftOfLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLeftOfLine</h4>
<pre>public static&nbsp;boolean&nbsp;isLeftOfLine(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePoint,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;lineDirection,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;up)</pre>
</li>
</ul>
<a name="nearestPointOnLine-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nearestPointOnLine</h4>
<pre>public static&nbsp;<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;nearestPointOnLine(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;point,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePt1,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;linePt2,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</pre>
</li>
</ul>
<a name="computeXZLineIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeXZLineIntersectionPoint</h4>
<pre>public static&nbsp;boolean&nbsp;computeXZLineIntersectionPoint(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e11,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e12,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e21,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e22,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</pre>
<div class="block">Returns the intersection point of two lines in the XZ plane. Notice that, although 3D
coordinates are used, only the X and Z components are considered. The Y component of the
returned intersection point is always 0. The function considers lines of infinite length;
hence the intersection point does not necessarily lie between e11, e12 and e21, e22. If the
specified edges are parallel <code>false</code> is returned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>e11</code> - First point of first line</dd>
<dd><code>e12</code> - Second point of first line</dd>
<dd><code>e21</code> - First point of second line</dd>
<dd><code>e22</code> - Second point of second line</dd>
<dd><code>result</code> - Is set to the intersection point of the two lines (of infinite length)
specified by the given points. If the lines are parallel <code>result</code>
remains unchanged</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if a intersection point was found, false if lines are parallel</dd>
</dl>
</li>
</ul>
<a name="computeXZEdgeIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeXZEdgeIntersectionPoint</h4>
<pre>public static&nbsp;boolean&nbsp;computeXZEdgeIntersectionPoint(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e11,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e12,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e21,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;e22,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;result)</pre>
<div class="block">Similar to <a href="../../../../../org/eclipse/mosaic/lib/math/VectorUtils.html#computeXZLineIntersectionPoint-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-"><code>computeXZLineIntersectionPoint(Vector3d, Vector3d, Vector3d, Vector3d, Vector3d)</code></a>
but also checks if the resulting intersection point lies between e11, e12 and e21, e22. Returns false
if the edges are parallel or the intersection point lies outside the edge borders.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>e11</code> - First point of first edge</dd>
<dd><code>e12</code> - Second point of first edge</dd>
<dd><code>e21</code> - First point of second edge</dd>
<dd><code>e22</code> - Second point of second edge</dd>
<dd><code>result</code> - Is set to the intersection point of the two edges (of infinite length)
specified by the given points. If the edges do not intersect the result is undefined</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if a intersection point was found</dd>
</dl>
</li>
</ul>
<a name="curvature-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-org.eclipse.mosaic.lib.math.Vector3d-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>curvature</h4>
<pre>public static&nbsp;double&nbsp;curvature(<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecA,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecB,
<a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math">Vector3d</a>&nbsp;vecC)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/VectorUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/eclipse/mosaic/lib/math/Vector3d.html" title="class in org.eclipse.mosaic.lib.math"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/mosaic/lib/math/VectorUtils.html" target="_top">Frames</a></li>
<li><a href="VectorUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2020 <a href="https://www.fokus.fraunhofer.de/">Fraunhofer FOKUS</a>. All rights reserved.</small></p>
</body>
</html>