cordova-plugin-pdf417
Version:
A small and powerful PDF417 barcode scanning library
999 lines (998 loc) • 39.8 kB
HTML
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Point (LibPdf417Mobi API)</title>
<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="Point (LibPdf417Mobi API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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="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>Prev Class</li>
<li><a href="../../../com/microblink/geometry/Quadrilateral.html" title="class in com.microblink.geometry"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/microblink/geometry/Point.html" target="_top">Frames</a></li>
<li><a href="Point.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All 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: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </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">com.microblink.geometry</div>
<h2 title="Class Point" class="title">Class Point</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.microblink.geometry.Point</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>android.os.Parcelable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">Point</span>
extends java.lang.Object
implements android.os.Parcelable</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.android.os.Parcelable">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface android.os.Parcelable</h3>
<code>android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T></code></li>
</ul>
</li>
</ul>
<!-- =========== 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"> </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 android.os.Parcelable.Creator<<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#CREATOR">CREATOR</a></span></code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.android.os.Parcelable">
<!-- -->
</a>
<h3>Fields inherited from interface android.os.Parcelable</h3>
<code>CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE</code></li>
</ul>
</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"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#Point--">Point</a></span>()</code>
<div class="block">Constructor that creates default point at position (0,0).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#Point-float-float-">Point</a></span>(float x,
float y)</code>
<div class="block">Constructor that creates point at position (x,y).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#Point-android.os.Parcel-">Point</a></span>(android.os.Parcel in)</code> </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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#clamp-float-">clamp</a></span>(float length)</code>
<div class="block">Calculate and return point clamped to given norm (length).</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#clamp-float-float-">clamp</a></span>(float minLength,
float maxLength)</code>
<div class="block">Calculate and return point clamped to given norm (lengths).</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#describeContents--">describeContents</a></span>()</code> </td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#distance-com.microblink.geometry.Point-">distance</a></span>(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</code>
<div class="block">Calculates and returns the distance to given point.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#draw-android.graphics.Canvas-android.graphics.Paint-int-">draw</a></span>(android.graphics.Canvas canvas,
android.graphics.Paint paint,
int pointRadius)</code>
<div class="block">Draws the point to given canvas with given paint.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object o)</code> </td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#getX--">getX</a></span>()</code> </td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#getY--">getY</a></span>()</code> </td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#isZero--">isZero</a></span>()</code>
<div class="block">Returns true if point has coordinates (0,0).</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#log--">log</a></span>()</code>
<div class="block">Logs the point coordinates to LOG_DEBUG log.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#makeCopy--">makeCopy</a></span>()</code> </td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorX-float-">mirrorX</a></span>(float maxXDimension)</code>
<div class="block">Return point mirrored around X axis.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorXInPlace-float-">mirrorXInPlace</a></span>(float maxXDimension)</code>
<div class="block">Mirrors point around X axis.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorXY-float-float-">mirrorXY</a></span>(float maxXDimension,
float maxYDimension)</code>
<div class="block">Return point mirrored around both X and Y axis</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorXYInPlace-float-float-">mirrorXYInPlace</a></span>(float maxXDimension,
float maxYDimension)</code>
<div class="block">Mirrors point around both X and Y axis</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorY-float-">mirrorY</a></span>(float maxYDimension)</code>
<div class="block">Return point mirrored around Y axis.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#mirrorYInPlace-float-">mirrorYInPlace</a></span>(float maxYDimension)</code>
<div class="block">Mirrors point around Y axis.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#negative--">negative</a></span>()</code> </td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#negativeClone--">negativeClone</a></span>()</code>
<div class="block">Calculate and return negative of current point.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#norm--">norm</a></span>()</code>
<div class="block">Calculate and return norm of the point.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#normalize--">normalize</a></span>()</code>
<div class="block">Calculate and return point that has same direction as this point, but norm 1.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#normalize-float-">normalize</a></span>(float length)</code>
<div class="block">Calculate and return point that has same direction as this point, but norm as given.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorMinus-com.microblink.geometry.Point-">operatorMinus</a></span>(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</code>
<div class="block">- operator on the point.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorMinusEquals-com.microblink.geometry.Point-">operatorMinusEquals</a></span>(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</code> </td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorMultiply-float-">operatorMultiply</a></span>(float factor)</code>
<div class="block">Multiplication of the point with scalar.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorMultiplyEquals-float-">operatorMultiplyEquals</a></span>(float factor)</code> </td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorPlus-com.microblink.geometry.Point-">operatorPlus</a></span>(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</code>
<div class="block">+ operator on the point.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#operatorPlusEquals-com.microblink.geometry.Point-">operatorPlusEquals</a></span>(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</code>
<div class="block">+= operator on the point.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#setX-float-">setX</a></span>(float x)</code>
<div class="block">Sets the x coordinate of the point.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#setY-float-">setY</a></span>(float y)</code>
<div class="block">Sets the y coordinate of the point.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#toString--">toString</a></span>()</code> </td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/geometry/Point.html#writeToParcel-android.os.Parcel-int-">writeToParcel</a></span>(android.os.Parcel dest,
int flags)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</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="CREATOR">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CREATOR</h4>
<pre>public static final android.os.Parcelable.Creator<<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a>> CREATOR</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Point--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Point</h4>
<pre>public Point()</pre>
<div class="block">Constructor that creates default point at position (0,0).</div>
</li>
</ul>
<a name="Point-float-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Point</h4>
<pre>public Point(float x,
float y)</pre>
<div class="block">Constructor that creates point at position (x,y).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - x-coordinate of the point</dd>
<dd><code>y</code> - y-coordinate of the poing</dd>
</dl>
</li>
</ul>
<a name="Point-android.os.Parcel-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Point</h4>
<pre>protected Point(android.os.Parcel in)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="isZero--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isZero</h4>
<pre>public boolean isZero()</pre>
<div class="block">Returns true if point has coordinates (0,0).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if point has coordinates (0,0).</dd>
</dl>
</li>
</ul>
<a name="operatorPlus-com.microblink.geometry.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorPlus</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> operatorPlus(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</pre>
<div class="block">+ operator on the point. Returned point is a new point.
For example: c = a + b <==> c = a.operatorPlus(b);</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - Point to be added to current point</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new point that is the result of addition</dd>
</dl>
</li>
</ul>
<a name="operatorPlusEquals-com.microblink.geometry.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorPlusEquals</h4>
<pre>public void operatorPlusEquals(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</pre>
<div class="block">+= operator on the point.
For example: b+=a <==> b.operatorPlusEquals(a);</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - Point to be added to current point</dd>
</dl>
</li>
</ul>
<a name="operatorMinus-com.microblink.geometry.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorMinus</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> operatorMinus(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</pre>
<div class="block">- operator on the point. Returned point is a new point.
For example: c = a - b <==> c = a.operatorMinus(b);</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - Point to be substracted from current point</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new point that is the result of substraction</dd>
</dl>
</li>
</ul>
<a name="operatorMinusEquals-com.microblink.geometry.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorMinusEquals</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> operatorMinusEquals(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</pre>
</li>
</ul>
<a name="operatorMultiply-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorMultiply</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> operatorMultiply(float factor)</pre>
<div class="block">Multiplication of the point with scalar. Returned point is a new point.
For example: pointC = pointA * scalarB <==> c = a.operatorMultiply(b)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>factor</code> - Scalar with which point should be multiplied</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new point that is the result of multiplication</dd>
</dl>
</li>
</ul>
<a name="operatorMultiplyEquals-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operatorMultiplyEquals</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> operatorMultiplyEquals(float factor)</pre>
</li>
</ul>
<a name="negativeClone--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>negativeClone</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> negativeClone()</pre>
<div class="block">Calculate and return negative of current point. Negative point is point mirrored
to current point over (0,0) pivot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Negative point.</dd>
</dl>
</li>
</ul>
<a name="negative--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>negative</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> negative()</pre>
</li>
</ul>
<a name="norm--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>norm</h4>
<pre>public float norm()</pre>
<div class="block">Calculate and return norm of the point. Norm is the distance of the point
and point (0,0).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Norm of the point.</dd>
</dl>
</li>
</ul>
<a name="normalize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalize</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> normalize()</pre>
<div class="block">Calculate and return point that has same direction as this point, but norm 1.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Unit point.</dd>
</dl>
</li>
</ul>
<a name="normalize-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalize</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> normalize(float length)</pre>
<div class="block">Calculate and return point that has same direction as this point, but norm as given.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - Desired norm of the point.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Point with norm "length".</dd>
</dl>
</li>
</ul>
<a name="clamp-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clamp</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> clamp(float length)</pre>
<div class="block">Calculate and return point clamped to given norm (length). If norm of the point is larger
than desired length, returns the point that has the same direction as this point, but norm "length".
If norm of the point is smaller or equal to desired length, returns the clone of this point.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - Desired norm to which point should be clamped.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Clamped point.</dd>
</dl>
</li>
</ul>
<a name="clamp-float-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clamp</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> clamp(float minLength,
float maxLength)</pre>
<div class="block">Calculate and return point clamped to given norm (lengths). If norm of the point is larger
than maxLength, returns the point that has the same direction as this point, but norm "maxLength".
If norm of the point is smaller than minLength, returns the point that has the same direction
as this point, but norm "minLength".
If norm of the point is smaller than maxLength and larger than minLength, returns the clone of this point.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minLength</code> - Minimum desired norm of the point.</dd>
<dd><code>maxLength</code> - Maximum desired norm of the point.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Clamped point.</dd>
</dl>
</li>
</ul>
<a name="mirrorX-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorX</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> mirrorX(float maxXDimension)</pre>
<div class="block">Return point mirrored around X axis.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxXDimension</code> - Maximum dimension of X axis.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Mirrored point</dd>
</dl>
</li>
</ul>
<a name="mirrorXInPlace-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorXInPlace</h4>
<pre>public void mirrorXInPlace(float maxXDimension)</pre>
<div class="block">Mirrors point around X axis.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxXDimension</code> - Maximum dimension of X axis.</dd>
</dl>
</li>
</ul>
<a name="mirrorY-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorY</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> mirrorY(float maxYDimension)</pre>
<div class="block">Return point mirrored around Y axis.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxYDimension</code> - Maximum dimension of Y axis.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Mirrored point</dd>
</dl>
</li>
</ul>
<a name="mirrorYInPlace-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorYInPlace</h4>
<pre>public void mirrorYInPlace(float maxYDimension)</pre>
<div class="block">Mirrors point around Y axis.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxYDimension</code> - Maximum dimension of Y axis.</dd>
</dl>
</li>
</ul>
<a name="mirrorXY-float-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorXY</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> mirrorXY(float maxXDimension,
float maxYDimension)</pre>
<div class="block">Return point mirrored around both X and Y axis</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxXDimension</code> - Maximum dimension of X axis.</dd>
<dd><code>maxYDimension</code> - Maximum dimension of Y axis.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Mirrored point.</dd>
</dl>
</li>
</ul>
<a name="mirrorXYInPlace-float-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mirrorXYInPlace</h4>
<pre>public void mirrorXYInPlace(float maxXDimension,
float maxYDimension)</pre>
<div class="block">Mirrors point around both X and Y axis</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxXDimension</code> - Maximum dimension of X axis.</dd>
<dd><code>maxYDimension</code> - Maximum dimension of Y axis.</dd>
</dl>
</li>
</ul>
<a name="makeCopy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCopy</h4>
<pre>public <a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> makeCopy()</pre>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public boolean equals(java.lang.Object o)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="distance-com.microblink.geometry.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>distance</h4>
<pre>public float distance(<a href="../../../com/microblink/geometry/Point.html" title="class in com.microblink.geometry">Point</a> other)</pre>
<div class="block">Calculates and returns the distance to given point.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - Point to which distance is calculated.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>distance to given point</dd>
</dl>
</li>
</ul>
<a name="log--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log</h4>
<pre>public void log()</pre>
<div class="block">Logs the point coordinates to LOG_DEBUG log.</div>
</li>
</ul>
<a name="draw-android.graphics.Canvas-android.graphics.Paint-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>draw</h4>
<pre>public void draw(android.graphics.Canvas canvas,
android.graphics.Paint paint,
int pointRadius)</pre>
<div class="block">Draws the point to given canvas with given paint. Point is drawn as circle of given radius.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>canvas</code> - Canvas to which point should be drawn.</dd>
<dd><code>paint</code> - Paint used to draw point.</dd>
<dd><code>pointRadius</code> - Radius of the circle that represents the point.</dd>
</dl>
</li>
</ul>
<a name="getX--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getX</h4>
<pre>public float getX()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the x coordinate of the point</dd>
</dl>
</li>
</ul>
<a name="setX-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setX</h4>
<pre>public void setX(float x)</pre>
<div class="block">Sets the x coordinate of the point.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - x coordinate of the point</dd>
</dl>
</li>
</ul>
<a name="getY--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getY</h4>
<pre>public float getY()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the y coordinate of the point</dd>
</dl>
</li>
</ul>
<a name="setY-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setY</h4>
<pre>public void setY(float y)</pre>
<div class="block">Sets the y coordinate of the point.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>y</code> - y coordinate of the point</dd>
</dl>
</li>
</ul>
<a name="describeContents--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>describeContents</h4>
<pre>public int describeContents()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>describeContents</code> in interface <code>android.os.Parcelable</code></dd>
</dl>
</li>
</ul>
<a name="writeToParcel-android.os.Parcel-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>writeToParcel</h4>
<pre>public void writeToParcel(android.os.Parcel dest,
int flags)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>writeToParcel</code> in interface <code>android.os.Parcelable</code></dd>
</dl>
</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="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>Prev Class</li>
<li><a href="../../../com/microblink/geometry/Quadrilateral.html" title="class in com.microblink.geometry"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/microblink/geometry/Point.html" target="_top">Frames</a></li>
<li><a href="Point.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All 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: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>