Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 356 | chris | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!--NewPage--> |
||
| 3 | <HTML> |
||
| 4 | <HEAD> |
||
| 5 | <!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:07 CET 2013 --> |
||
| 6 | <TITLE> |
||
| 7 | Vector2 (libgdx API) |
||
| 8 | </TITLE> |
||
| 9 | |||
| 10 | <META NAME="date" CONTENT="2013-01-27"> |
||
| 11 | |||
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
||
| 13 | |||
| 14 | <SCRIPT type="text/javascript"> |
||
| 15 | function windowTitle() |
||
| 16 | { |
||
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
||
| 18 | parent.document.title="Vector2 (libgdx API)"; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | </SCRIPT> |
||
| 22 | <NOSCRIPT> |
||
| 23 | </NOSCRIPT> |
||
| 24 | |||
| 25 | </HEAD> |
||
| 26 | |||
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
| 28 | <HR> |
||
| 29 | |||
| 30 | |||
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
| 32 | <A NAME="navbar_top"><!-- --></A> |
||
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 35 | <TR> |
||
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 39 | <TR ALIGN="center" VALIGN="top"> |
||
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Vector2.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 48 | </TR> |
||
| 49 | </TABLE> |
||
| 50 | </TD> |
||
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 52 | |||
| 53 | libgdx API |
||
| 54 | <style> |
||
| 55 | body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } |
||
| 56 | pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } |
||
| 57 | h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } |
||
| 58 | .TableHeadingColor { background:#EEEEFF; } |
||
| 59 | a { text-decoration:none } |
||
| 60 | a:hover { text-decoration:underline } |
||
| 61 | a:link, a:visited { color:blue } |
||
| 62 | table { border:0px } |
||
| 63 | .TableRowColor td:first-child { border-left:1px solid black } |
||
| 64 | .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } |
||
| 65 | hr { border:0px; border-bottom:1px solid #333366; } |
||
| 66 | </style> |
||
| 67 | </EM> |
||
| 68 | </TD> |
||
| 69 | </TR> |
||
| 70 | |||
| 71 | <TR> |
||
| 72 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 73 | <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 75 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 76 | <A HREF="../../../../index.html?com/badlogic/gdx/math/Vector2.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="Vector2.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <SCRIPT type="text/javascript"> |
||
| 79 | <!-- |
||
| 80 | if(window==top) { |
||
| 81 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 82 | } |
||
| 83 | //--> |
||
| 84 | </SCRIPT> |
||
| 85 | <NOSCRIPT> |
||
| 86 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 87 | </NOSCRIPT> |
||
| 88 | |||
| 89 | |||
| 90 | </FONT></TD> |
||
| 91 | </TR> |
||
| 92 | <TR> |
||
| 93 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 94 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 97 | </TR> |
||
| 98 | </TABLE> |
||
| 99 | <A NAME="skip-navbar_top"></A> |
||
| 100 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
| 101 | |||
| 102 | <HR> |
||
| 103 | <!-- ======== START OF CLASS DATA ======== --> |
||
| 104 | <H2> |
||
| 105 | <FONT SIZE="-1"> |
||
| 106 | com.badlogic.gdx.math</FONT> |
||
| 107 | <BR> |
||
| 108 | Class Vector2</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.math.Vector2</B> |
||
| 112 | </PRE> |
||
| 113 | <DL> |
||
| 114 | <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD> |
||
| 115 | </DL> |
||
| 116 | <HR> |
||
| 117 | <DL> |
||
| 118 | <DT><PRE>public class <B>Vector2</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL> |
||
| 119 | </PRE> |
||
| 120 | |||
| 121 | <P> |
||
| 122 | Encapsulates a 2D vector. Allows chaining methods by returning a reference to itself |
||
| 123 | <P> |
||
| 124 | |||
| 125 | <P> |
||
| 126 | <DL> |
||
| 127 | <DT><B>Author:</B></DT> |
||
| 128 | <DD>badlogicgames@gmail.com</DD> |
||
| 129 | <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.badlogic.gdx.math.Vector2">Serialized Form</A></DL> |
||
| 130 | <HR> |
||
| 131 | |||
| 132 | <P> |
||
| 133 | <!-- =========== FIELD SUMMARY =========== --> |
||
| 134 | |||
| 135 | <A NAME="field_summary"><!-- --></A> |
||
| 136 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 137 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 138 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 139 | <B>Field Summary</B></FONT></TH> |
||
| 140 | </TR> |
||
| 141 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 142 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 143 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 144 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp">tmp</A></B></CODE> |
||
| 145 | |||
| 146 | <BR> |
||
| 147 | Static temporary vector.</TD> |
||
| 148 | </TR> |
||
| 149 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 150 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 151 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 152 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp2">tmp2</A></B></CODE> |
||
| 153 | |||
| 154 | <BR> |
||
| 155 | Static temporary vector.</TD> |
||
| 156 | </TR> |
||
| 157 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 158 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 159 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 160 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp3">tmp3</A></B></CODE> |
||
| 161 | |||
| 162 | <BR> |
||
| 163 | Static temporary vector.</TD> |
||
| 164 | </TR> |
||
| 165 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 166 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 167 | <CODE> float</CODE></FONT></TD> |
||
| 168 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#x">x</A></B></CODE> |
||
| 169 | |||
| 170 | <BR> |
||
| 171 | the x-component of this vector</TD> |
||
| 172 | </TR> |
||
| 173 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 174 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 175 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 176 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#X">X</A></B></CODE> |
||
| 177 | |||
| 178 | <BR> |
||
| 179 | </TD> |
||
| 180 | </TR> |
||
| 181 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 183 | <CODE> float</CODE></FONT></TD> |
||
| 184 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#y">y</A></B></CODE> |
||
| 185 | |||
| 186 | <BR> |
||
| 187 | the y-component of this vector</TD> |
||
| 188 | </TR> |
||
| 189 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 190 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 191 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 192 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#Y">Y</A></B></CODE> |
||
| 193 | |||
| 194 | <BR> |
||
| 195 | </TD> |
||
| 196 | </TR> |
||
| 197 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 199 | <CODE>static <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 200 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#Zero">Zero</A></B></CODE> |
||
| 201 | |||
| 202 | <BR> |
||
| 203 | </TD> |
||
| 204 | </TR> |
||
| 205 | </TABLE> |
||
| 206 | |
||
| 207 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 208 | |||
| 209 | <A NAME="constructor_summary"><!-- --></A> |
||
| 210 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 211 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 212 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 213 | <B>Constructor Summary</B></FONT></TH> |
||
| 214 | </TR> |
||
| 215 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 216 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#Vector2()">Vector2</A></B>()</CODE> |
||
| 217 | |||
| 218 | <BR> |
||
| 219 | Constructs a new vector at (0,0)</TD> |
||
| 220 | </TR> |
||
| 221 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 222 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#Vector2(float, float)">Vector2</A></B>(float x, |
||
| 223 | float y)</CODE> |
||
| 224 | |||
| 225 | <BR> |
||
| 226 | Constructs a vector with the given components</TD> |
||
| 227 | </TR> |
||
| 228 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 229 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#Vector2(com.badlogic.gdx.math.Vector2)">Vector2</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 230 | |||
| 231 | <BR> |
||
| 232 | Constructs a vector from the given vector</TD> |
||
| 233 | </TR> |
||
| 234 | </TABLE> |
||
| 235 | |
||
| 236 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 237 | |||
| 238 | <A NAME="method_summary"><!-- --></A> |
||
| 239 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 240 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 241 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 242 | <B>Method Summary</B></FONT></TH> |
||
| 243 | </TR> |
||
| 244 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 245 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 246 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 247 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#add(float, float)">add</A></B>(float x, |
||
| 248 | float y)</CODE> |
||
| 249 | |||
| 250 | <BR> |
||
| 251 | Adds the given components to this vector</TD> |
||
| 252 | </TR> |
||
| 253 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 255 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 256 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#add(com.badlogic.gdx.math.Vector2)">add</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 257 | |||
| 258 | <BR> |
||
| 259 | Adds the given vector to this vector</TD> |
||
| 260 | </TR> |
||
| 261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 263 | <CODE> float</CODE></FONT></TD> |
||
| 264 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#angle()">angle</A></B>()</CODE> |
||
| 265 | |||
| 266 | <BR> |
||
| 267 | </TD> |
||
| 268 | </TR> |
||
| 269 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 270 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 271 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 272 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#cpy()">cpy</A></B>()</CODE> |
||
| 273 | |||
| 274 | <BR> |
||
| 275 | </TD> |
||
| 276 | </TR> |
||
| 277 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 278 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 279 | <CODE> float</CODE></FONT></TD> |
||
| 280 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#crs(float, float)">crs</A></B>(float x, |
||
| 281 | float y)</CODE> |
||
| 282 | |||
| 283 | <BR> |
||
| 284 | Calculates the 2D cross product between this and the given vector.</TD> |
||
| 285 | </TR> |
||
| 286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 288 | <CODE> float</CODE></FONT></TD> |
||
| 289 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#crs(com.badlogic.gdx.math.Vector2)">crs</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 290 | |||
| 291 | <BR> |
||
| 292 | Calculates the 2D cross product between this and the given vector.</TD> |
||
| 293 | </TR> |
||
| 294 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 295 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 296 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 297 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#div(float)">div</A></B>(float value)</CODE> |
||
| 298 | |||
| 299 | <BR> |
||
| 300 | </TD> |
||
| 301 | </TR> |
||
| 302 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 303 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 304 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 305 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#div(float, float)">div</A></B>(float vx, |
||
| 306 | float vy)</CODE> |
||
| 307 | |||
| 308 | <BR> |
||
| 309 | </TD> |
||
| 310 | </TR> |
||
| 311 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 312 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 313 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 314 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#div(com.badlogic.gdx.math.Vector2)">div</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> other)</CODE> |
||
| 315 | |||
| 316 | <BR> |
||
| 317 | </TD> |
||
| 318 | </TR> |
||
| 319 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 320 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 321 | <CODE> float</CODE></FONT></TD> |
||
| 322 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#dot(com.badlogic.gdx.math.Vector2)">dot</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 323 | |||
| 324 | <BR> |
||
| 325 | </TD> |
||
| 326 | </TR> |
||
| 327 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 328 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 329 | <CODE> float</CODE></FONT></TD> |
||
| 330 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#dst(float, float)">dst</A></B>(float x, |
||
| 331 | float y)</CODE> |
||
| 332 | |||
| 333 | <BR> |
||
| 334 | </TD> |
||
| 335 | </TR> |
||
| 336 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 337 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 338 | <CODE> float</CODE></FONT></TD> |
||
| 339 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#dst(com.badlogic.gdx.math.Vector2)">dst</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 340 | |||
| 341 | <BR> |
||
| 342 | </TD> |
||
| 343 | </TR> |
||
| 344 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 345 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 346 | <CODE> float</CODE></FONT></TD> |
||
| 347 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#dst2(float, float)">dst2</A></B>(float x, |
||
| 348 | float y)</CODE> |
||
| 349 | |||
| 350 | <BR> |
||
| 351 | </TD> |
||
| 352 | </TR> |
||
| 353 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 354 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 355 | <CODE> float</CODE></FONT></TD> |
||
| 356 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#dst2(com.badlogic.gdx.math.Vector2)">dst2</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 357 | |||
| 358 | <BR> |
||
| 359 | </TD> |
||
| 360 | </TR> |
||
| 361 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 362 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 363 | <CODE> boolean</CODE></FONT></TD> |
||
| 364 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#epsilonEquals(com.badlogic.gdx.math.Vector2, float)">epsilonEquals</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> obj, |
||
| 365 | float epsilon)</CODE> |
||
| 366 | |||
| 367 | <BR> |
||
| 368 | Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.</TD> |
||
| 369 | </TR> |
||
| 370 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 371 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 372 | <CODE> boolean</CODE></FONT></TD> |
||
| 373 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE> |
||
| 374 | |||
| 375 | <BR> |
||
| 376 | </TD> |
||
| 377 | </TR> |
||
| 378 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 379 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 380 | <CODE> int</CODE></FONT></TD> |
||
| 381 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#hashCode()">hashCode</A></B>()</CODE> |
||
| 382 | |||
| 383 | <BR> |
||
| 384 | </TD> |
||
| 385 | </TR> |
||
| 386 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 387 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 388 | <CODE> float</CODE></FONT></TD> |
||
| 389 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#len()">len</A></B>()</CODE> |
||
| 390 | |||
| 391 | <BR> |
||
| 392 | </TD> |
||
| 393 | </TR> |
||
| 394 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 395 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 396 | <CODE> float</CODE></FONT></TD> |
||
| 397 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#len2()">len2</A></B>()</CODE> |
||
| 398 | |||
| 399 | <BR> |
||
| 400 | </TD> |
||
| 401 | </TR> |
||
| 402 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 404 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 405 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#lerp(com.badlogic.gdx.math.Vector2, float)">lerp</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> target, |
||
| 406 | float alpha)</CODE> |
||
| 407 | |||
| 408 | <BR> |
||
| 409 | Linearly interpolates between this vector and the target vector by alpha which is in the range [0,1].</TD> |
||
| 410 | </TR> |
||
| 411 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 412 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 413 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 414 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#mul(float)">mul</A></B>(float scalar)</CODE> |
||
| 415 | |||
| 416 | <BR> |
||
| 417 | Multiplies this vector by a scalar</TD> |
||
| 418 | </TR> |
||
| 419 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 420 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 421 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 422 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#mul(float, float)">mul</A></B>(float x, |
||
| 423 | float y)</CODE> |
||
| 424 | |||
| 425 | <BR> |
||
| 426 | Multiplies this vector by a scalar</TD> |
||
| 427 | </TR> |
||
| 428 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 429 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 430 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 431 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#mul(com.badlogic.gdx.math.Matrix3)">mul</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> mat)</CODE> |
||
| 432 | |||
| 433 | <BR> |
||
| 434 | Multiplies this vector by the given matrix</TD> |
||
| 435 | </TR> |
||
| 436 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 437 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 438 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 439 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#nor()">nor</A></B>()</CODE> |
||
| 440 | |||
| 441 | <BR> |
||
| 442 | Normalizes this vector</TD> |
||
| 443 | </TR> |
||
| 444 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 445 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 446 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 447 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#rotate(float)">rotate</A></B>(float degrees)</CODE> |
||
| 448 | |||
| 449 | <BR> |
||
| 450 | Rotates the Vector2 by the given angle, counter-clockwise.</TD> |
||
| 451 | </TR> |
||
| 452 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 453 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 454 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 455 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#set(float, float)">set</A></B>(float x, |
||
| 456 | float y)</CODE> |
||
| 457 | |||
| 458 | <BR> |
||
| 459 | Sets the components of this vector</TD> |
||
| 460 | </TR> |
||
| 461 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 462 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 463 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 464 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#set(com.badlogic.gdx.math.Vector2)">set</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 465 | |||
| 466 | <BR> |
||
| 467 | Sets this vector from the given vector</TD> |
||
| 468 | </TR> |
||
| 469 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 470 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 471 | <CODE> void</CODE></FONT></TD> |
||
| 472 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#setAngle(float)">setAngle</A></B>(float angle)</CODE> |
||
| 473 | |||
| 474 | <BR> |
||
| 475 | Sets the angle of the vector.</TD> |
||
| 476 | </TR> |
||
| 477 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 478 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 479 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 480 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#sub(float, float)">sub</A></B>(float x, |
||
| 481 | float y)</CODE> |
||
| 482 | |||
| 483 | <BR> |
||
| 484 | Substracts the other vector from this vector.</TD> |
||
| 485 | </TR> |
||
| 486 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 487 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 488 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 489 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#sub(com.badlogic.gdx.math.Vector2)">sub</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</CODE> |
||
| 490 | |||
| 491 | <BR> |
||
| 492 | Substracts the given vector from this vector.</TD> |
||
| 493 | </TR> |
||
| 494 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 495 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 496 | <CODE> <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 497 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp()">tmp</A></B>()</CODE> |
||
| 498 | |||
| 499 | <BR> |
||
| 500 | NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g.</TD> |
||
| 501 | </TR> |
||
| 502 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 503 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 504 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 505 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#toString()">toString</A></B>()</CODE> |
||
| 506 | |||
| 507 | <BR> |
||
| 508 | </TD> |
||
| 509 | </TR> |
||
| 510 | </TABLE> |
||
| 511 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 512 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 513 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 514 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 515 | </TR> |
||
| 516 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 517 | <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD> |
||
| 518 | </TR> |
||
| 519 | </TABLE> |
||
| 520 | |
||
| 521 | <P> |
||
| 522 | |||
| 523 | <!-- ============ FIELD DETAIL =========== --> |
||
| 524 | |||
| 525 | <A NAME="field_detail"><!-- --></A> |
||
| 526 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 527 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 528 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 529 | <B>Field Detail</B></FONT></TH> |
||
| 530 | </TR> |
||
| 531 | </TABLE> |
||
| 532 | |||
| 533 | <A NAME="tmp"><!-- --></A><H3> |
||
| 534 | tmp</H3> |
||
| 535 | <PRE> |
||
| 536 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>tmp</B></PRE> |
||
| 537 | <DL> |
||
| 538 | <DD>Static temporary vector. Use with care! Use only when sure other code will not also use this. |
||
| 539 | <P> |
||
| 540 | <DL> |
||
| 541 | <DT><B>See Also:</B><DD><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp()"><CODE>tmp()</CODE></A></DL> |
||
| 542 | </DL> |
||
| 543 | <HR> |
||
| 544 | |||
| 545 | <A NAME="tmp2"><!-- --></A><H3> |
||
| 546 | tmp2</H3> |
||
| 547 | <PRE> |
||
| 548 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>tmp2</B></PRE> |
||
| 549 | <DL> |
||
| 550 | <DD>Static temporary vector. Use with care! Use only when sure other code will not also use this. |
||
| 551 | <P> |
||
| 552 | <DL> |
||
| 553 | <DT><B>See Also:</B><DD><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp()"><CODE>tmp()</CODE></A></DL> |
||
| 554 | </DL> |
||
| 555 | <HR> |
||
| 556 | |||
| 557 | <A NAME="tmp3"><!-- --></A><H3> |
||
| 558 | tmp3</H3> |
||
| 559 | <PRE> |
||
| 560 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>tmp3</B></PRE> |
||
| 561 | <DL> |
||
| 562 | <DD>Static temporary vector. Use with care! Use only when sure other code will not also use this. |
||
| 563 | <P> |
||
| 564 | <DL> |
||
| 565 | <DT><B>See Also:</B><DD><A HREF="../../../../com/badlogic/gdx/math/Vector2.html#tmp()"><CODE>tmp()</CODE></A></DL> |
||
| 566 | </DL> |
||
| 567 | <HR> |
||
| 568 | |||
| 569 | <A NAME="X"><!-- --></A><H3> |
||
| 570 | X</H3> |
||
| 571 | <PRE> |
||
| 572 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>X</B></PRE> |
||
| 573 | <DL> |
||
| 574 | <DL> |
||
| 575 | </DL> |
||
| 576 | </DL> |
||
| 577 | <HR> |
||
| 578 | |||
| 579 | <A NAME="Y"><!-- --></A><H3> |
||
| 580 | Y</H3> |
||
| 581 | <PRE> |
||
| 582 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>Y</B></PRE> |
||
| 583 | <DL> |
||
| 584 | <DL> |
||
| 585 | </DL> |
||
| 586 | </DL> |
||
| 587 | <HR> |
||
| 588 | |||
| 589 | <A NAME="Zero"><!-- --></A><H3> |
||
| 590 | Zero</H3> |
||
| 591 | <PRE> |
||
| 592 | public static final <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>Zero</B></PRE> |
||
| 593 | <DL> |
||
| 594 | <DL> |
||
| 595 | </DL> |
||
| 596 | </DL> |
||
| 597 | <HR> |
||
| 598 | |||
| 599 | <A NAME="x"><!-- --></A><H3> |
||
| 600 | x</H3> |
||
| 601 | <PRE> |
||
| 602 | public float <B>x</B></PRE> |
||
| 603 | <DL> |
||
| 604 | <DD>the x-component of this vector |
||
| 605 | <P> |
||
| 606 | <DL> |
||
| 607 | </DL> |
||
| 608 | </DL> |
||
| 609 | <HR> |
||
| 610 | |||
| 611 | <A NAME="y"><!-- --></A><H3> |
||
| 612 | y</H3> |
||
| 613 | <PRE> |
||
| 614 | public float <B>y</B></PRE> |
||
| 615 | <DL> |
||
| 616 | <DD>the y-component of this vector |
||
| 617 | <P> |
||
| 618 | <DL> |
||
| 619 | </DL> |
||
| 620 | </DL> |
||
| 621 | |||
| 622 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 623 | |||
| 624 | <A NAME="constructor_detail"><!-- --></A> |
||
| 625 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 626 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 627 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 628 | <B>Constructor Detail</B></FONT></TH> |
||
| 629 | </TR> |
||
| 630 | </TABLE> |
||
| 631 | |||
| 632 | <A NAME="Vector2()"><!-- --></A><H3> |
||
| 633 | Vector2</H3> |
||
| 634 | <PRE> |
||
| 635 | public <B>Vector2</B>()</PRE> |
||
| 636 | <DL> |
||
| 637 | <DD>Constructs a new vector at (0,0) |
||
| 638 | <P> |
||
| 639 | </DL> |
||
| 640 | <HR> |
||
| 641 | |||
| 642 | <A NAME="Vector2(float, float)"><!-- --></A><H3> |
||
| 643 | Vector2</H3> |
||
| 644 | <PRE> |
||
| 645 | public <B>Vector2</B>(float x, |
||
| 646 | float y)</PRE> |
||
| 647 | <DL> |
||
| 648 | <DD>Constructs a vector with the given components |
||
| 649 | <P> |
||
| 650 | <DL> |
||
| 651 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component<DD><CODE>y</CODE> - The y-component</DL> |
||
| 652 | </DL> |
||
| 653 | <HR> |
||
| 654 | |||
| 655 | <A NAME="Vector2(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 656 | Vector2</H3> |
||
| 657 | <PRE> |
||
| 658 | public <B>Vector2</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 659 | <DL> |
||
| 660 | <DD>Constructs a vector from the given vector |
||
| 661 | <P> |
||
| 662 | <DL> |
||
| 663 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The vector</DL> |
||
| 664 | </DL> |
||
| 665 | |||
| 666 | <!-- ============ METHOD DETAIL ========== --> |
||
| 667 | |||
| 668 | <A NAME="method_detail"><!-- --></A> |
||
| 669 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 670 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 671 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 672 | <B>Method Detail</B></FONT></TH> |
||
| 673 | </TR> |
||
| 674 | </TABLE> |
||
| 675 | |||
| 676 | <A NAME="cpy()"><!-- --></A><H3> |
||
| 677 | cpy</H3> |
||
| 678 | <PRE> |
||
| 679 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>cpy</B>()</PRE> |
||
| 680 | <DL> |
||
| 681 | <DD><DL> |
||
| 682 | </DL> |
||
| 683 | </DD> |
||
| 684 | <DD><DL> |
||
| 685 | |||
| 686 | <DT><B>Returns:</B><DD>a copy of this vector</DL> |
||
| 687 | </DD> |
||
| 688 | </DL> |
||
| 689 | <HR> |
||
| 690 | |||
| 691 | <A NAME="len()"><!-- --></A><H3> |
||
| 692 | len</H3> |
||
| 693 | <PRE> |
||
| 694 | public float <B>len</B>()</PRE> |
||
| 695 | <DL> |
||
| 696 | <DD><DL> |
||
| 697 | </DL> |
||
| 698 | </DD> |
||
| 699 | <DD><DL> |
||
| 700 | |||
| 701 | <DT><B>Returns:</B><DD>The euclidian length</DL> |
||
| 702 | </DD> |
||
| 703 | </DL> |
||
| 704 | <HR> |
||
| 705 | |||
| 706 | <A NAME="len2()"><!-- --></A><H3> |
||
| 707 | len2</H3> |
||
| 708 | <PRE> |
||
| 709 | public float <B>len2</B>()</PRE> |
||
| 710 | <DL> |
||
| 711 | <DD><DL> |
||
| 712 | </DL> |
||
| 713 | </DD> |
||
| 714 | <DD><DL> |
||
| 715 | |||
| 716 | <DT><B>Returns:</B><DD>The squared euclidian length</DL> |
||
| 717 | </DD> |
||
| 718 | </DL> |
||
| 719 | <HR> |
||
| 720 | |||
| 721 | <A NAME="set(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 722 | set</H3> |
||
| 723 | <PRE> |
||
| 724 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>set</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 725 | <DL> |
||
| 726 | <DD>Sets this vector from the given vector |
||
| 727 | <P> |
||
| 728 | <DD><DL> |
||
| 729 | </DL> |
||
| 730 | </DD> |
||
| 731 | <DD><DL> |
||
| 732 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The vector |
||
| 733 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 734 | </DD> |
||
| 735 | </DL> |
||
| 736 | <HR> |
||
| 737 | |||
| 738 | <A NAME="set(float, float)"><!-- --></A><H3> |
||
| 739 | set</H3> |
||
| 740 | <PRE> |
||
| 741 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>set</B>(float x, |
||
| 742 | float y)</PRE> |
||
| 743 | <DL> |
||
| 744 | <DD>Sets the components of this vector |
||
| 745 | <P> |
||
| 746 | <DD><DL> |
||
| 747 | </DL> |
||
| 748 | </DD> |
||
| 749 | <DD><DL> |
||
| 750 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component<DD><CODE>y</CODE> - The y-component |
||
| 751 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 752 | </DD> |
||
| 753 | </DL> |
||
| 754 | <HR> |
||
| 755 | |||
| 756 | <A NAME="sub(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 757 | sub</H3> |
||
| 758 | <PRE> |
||
| 759 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>sub</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 760 | <DL> |
||
| 761 | <DD>Substracts the given vector from this vector. |
||
| 762 | <P> |
||
| 763 | <DD><DL> |
||
| 764 | </DL> |
||
| 765 | </DD> |
||
| 766 | <DD><DL> |
||
| 767 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The vector |
||
| 768 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 769 | </DD> |
||
| 770 | </DL> |
||
| 771 | <HR> |
||
| 772 | |||
| 773 | <A NAME="nor()"><!-- --></A><H3> |
||
| 774 | nor</H3> |
||
| 775 | <PRE> |
||
| 776 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>nor</B>()</PRE> |
||
| 777 | <DL> |
||
| 778 | <DD>Normalizes this vector |
||
| 779 | <P> |
||
| 780 | <DD><DL> |
||
| 781 | </DL> |
||
| 782 | </DD> |
||
| 783 | <DD><DL> |
||
| 784 | |||
| 785 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 786 | </DD> |
||
| 787 | </DL> |
||
| 788 | <HR> |
||
| 789 | |||
| 790 | <A NAME="add(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 791 | add</H3> |
||
| 792 | <PRE> |
||
| 793 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>add</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 794 | <DL> |
||
| 795 | <DD>Adds the given vector to this vector |
||
| 796 | <P> |
||
| 797 | <DD><DL> |
||
| 798 | </DL> |
||
| 799 | </DD> |
||
| 800 | <DD><DL> |
||
| 801 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The vector |
||
| 802 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 803 | </DD> |
||
| 804 | </DL> |
||
| 805 | <HR> |
||
| 806 | |||
| 807 | <A NAME="add(float, float)"><!-- --></A><H3> |
||
| 808 | add</H3> |
||
| 809 | <PRE> |
||
| 810 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>add</B>(float x, |
||
| 811 | float y)</PRE> |
||
| 812 | <DL> |
||
| 813 | <DD>Adds the given components to this vector |
||
| 814 | <P> |
||
| 815 | <DD><DL> |
||
| 816 | </DL> |
||
| 817 | </DD> |
||
| 818 | <DD><DL> |
||
| 819 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component<DD><CODE>y</CODE> - The y-component |
||
| 820 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 821 | </DD> |
||
| 822 | </DL> |
||
| 823 | <HR> |
||
| 824 | |||
| 825 | <A NAME="dot(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 826 | dot</H3> |
||
| 827 | <PRE> |
||
| 828 | public float <B>dot</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 829 | <DL> |
||
| 830 | <DD><DL> |
||
| 831 | </DL> |
||
| 832 | </DD> |
||
| 833 | <DD><DL> |
||
| 834 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The other vector |
||
| 835 | <DT><B>Returns:</B><DD>The dot product between this and the other vector</DL> |
||
| 836 | </DD> |
||
| 837 | </DL> |
||
| 838 | <HR> |
||
| 839 | |||
| 840 | <A NAME="mul(float)"><!-- --></A><H3> |
||
| 841 | mul</H3> |
||
| 842 | <PRE> |
||
| 843 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>mul</B>(float scalar)</PRE> |
||
| 844 | <DL> |
||
| 845 | <DD>Multiplies this vector by a scalar |
||
| 846 | <P> |
||
| 847 | <DD><DL> |
||
| 848 | </DL> |
||
| 849 | </DD> |
||
| 850 | <DD><DL> |
||
| 851 | <DT><B>Parameters:</B><DD><CODE>scalar</CODE> - The scalar |
||
| 852 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 853 | </DD> |
||
| 854 | </DL> |
||
| 855 | <HR> |
||
| 856 | |||
| 857 | <A NAME="mul(float, float)"><!-- --></A><H3> |
||
| 858 | mul</H3> |
||
| 859 | <PRE> |
||
| 860 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>mul</B>(float x, |
||
| 861 | float y)</PRE> |
||
| 862 | <DL> |
||
| 863 | <DD>Multiplies this vector by a scalar |
||
| 864 | <P> |
||
| 865 | <DD><DL> |
||
| 866 | </DL> |
||
| 867 | </DD> |
||
| 868 | <DD><DL> |
||
| 869 | |||
| 870 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 871 | </DD> |
||
| 872 | </DL> |
||
| 873 | <HR> |
||
| 874 | |||
| 875 | <A NAME="div(float)"><!-- --></A><H3> |
||
| 876 | div</H3> |
||
| 877 | <PRE> |
||
| 878 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>div</B>(float value)</PRE> |
||
| 879 | <DL> |
||
| 880 | <DD><DL> |
||
| 881 | </DL> |
||
| 882 | </DD> |
||
| 883 | <DD><DL> |
||
| 884 | </DL> |
||
| 885 | </DD> |
||
| 886 | </DL> |
||
| 887 | <HR> |
||
| 888 | |||
| 889 | <A NAME="div(float, float)"><!-- --></A><H3> |
||
| 890 | div</H3> |
||
| 891 | <PRE> |
||
| 892 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>div</B>(float vx, |
||
| 893 | float vy)</PRE> |
||
| 894 | <DL> |
||
| 895 | <DD><DL> |
||
| 896 | </DL> |
||
| 897 | </DD> |
||
| 898 | <DD><DL> |
||
| 899 | </DL> |
||
| 900 | </DD> |
||
| 901 | </DL> |
||
| 902 | <HR> |
||
| 903 | |||
| 904 | <A NAME="div(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 905 | div</H3> |
||
| 906 | <PRE> |
||
| 907 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>div</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> other)</PRE> |
||
| 908 | <DL> |
||
| 909 | <DD><DL> |
||
| 910 | </DL> |
||
| 911 | </DD> |
||
| 912 | <DD><DL> |
||
| 913 | </DL> |
||
| 914 | </DD> |
||
| 915 | </DL> |
||
| 916 | <HR> |
||
| 917 | |||
| 918 | <A NAME="dst(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 919 | dst</H3> |
||
| 920 | <PRE> |
||
| 921 | public float <B>dst</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 922 | <DL> |
||
| 923 | <DD><DL> |
||
| 924 | </DL> |
||
| 925 | </DD> |
||
| 926 | <DD><DL> |
||
| 927 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The other vector |
||
| 928 | <DT><B>Returns:</B><DD>the distance between this and the other vector</DL> |
||
| 929 | </DD> |
||
| 930 | </DL> |
||
| 931 | <HR> |
||
| 932 | |||
| 933 | <A NAME="dst(float, float)"><!-- --></A><H3> |
||
| 934 | dst</H3> |
||
| 935 | <PRE> |
||
| 936 | public float <B>dst</B>(float x, |
||
| 937 | float y)</PRE> |
||
| 938 | <DL> |
||
| 939 | <DD><DL> |
||
| 940 | </DL> |
||
| 941 | </DD> |
||
| 942 | <DD><DL> |
||
| 943 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component of the other vector<DD><CODE>y</CODE> - The y-component of the other vector |
||
| 944 | <DT><B>Returns:</B><DD>the distance between this and the other vector</DL> |
||
| 945 | </DD> |
||
| 946 | </DL> |
||
| 947 | <HR> |
||
| 948 | |||
| 949 | <A NAME="dst2(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 950 | dst2</H3> |
||
| 951 | <PRE> |
||
| 952 | public float <B>dst2</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 953 | <DL> |
||
| 954 | <DD><DL> |
||
| 955 | </DL> |
||
| 956 | </DD> |
||
| 957 | <DD><DL> |
||
| 958 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - The other vector |
||
| 959 | <DT><B>Returns:</B><DD>the squared distance between this and the other vector</DL> |
||
| 960 | </DD> |
||
| 961 | </DL> |
||
| 962 | <HR> |
||
| 963 | |||
| 964 | <A NAME="dst2(float, float)"><!-- --></A><H3> |
||
| 965 | dst2</H3> |
||
| 966 | <PRE> |
||
| 967 | public float <B>dst2</B>(float x, |
||
| 968 | float y)</PRE> |
||
| 969 | <DL> |
||
| 970 | <DD><DL> |
||
| 971 | </DL> |
||
| 972 | </DD> |
||
| 973 | <DD><DL> |
||
| 974 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component of the other vector<DD><CODE>y</CODE> - The y-component of the other vector |
||
| 975 | <DT><B>Returns:</B><DD>the squared distance between this and the other vector</DL> |
||
| 976 | </DD> |
||
| 977 | </DL> |
||
| 978 | <HR> |
||
| 979 | |||
| 980 | <A NAME="toString()"><!-- --></A><H3> |
||
| 981 | toString</H3> |
||
| 982 | <PRE> |
||
| 983 | public java.lang.String <B>toString</B>()</PRE> |
||
| 984 | <DL> |
||
| 985 | <DD><DL> |
||
| 986 | <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 987 | </DD> |
||
| 988 | <DD><DL> |
||
| 989 | </DL> |
||
| 990 | </DD> |
||
| 991 | </DL> |
||
| 992 | <HR> |
||
| 993 | |||
| 994 | <A NAME="sub(float, float)"><!-- --></A><H3> |
||
| 995 | sub</H3> |
||
| 996 | <PRE> |
||
| 997 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>sub</B>(float x, |
||
| 998 | float y)</PRE> |
||
| 999 | <DL> |
||
| 1000 | <DD>Substracts the other vector from this vector. |
||
| 1001 | <P> |
||
| 1002 | <DD><DL> |
||
| 1003 | </DL> |
||
| 1004 | </DD> |
||
| 1005 | <DD><DL> |
||
| 1006 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component of the other vector<DD><CODE>y</CODE> - The y-component of the other vector |
||
| 1007 | <DT><B>Returns:</B><DD>This vector for chaining</DL> |
||
| 1008 | </DD> |
||
| 1009 | </DL> |
||
| 1010 | <HR> |
||
| 1011 | |||
| 1012 | <A NAME="tmp()"><!-- --></A><H3> |
||
| 1013 | tmp</H3> |
||
| 1014 | <PRE> |
||
| 1015 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>tmp</B>()</PRE> |
||
| 1016 | <DL> |
||
| 1017 | <DD>NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g. other methods might call this |
||
| 1018 | as well. |
||
| 1019 | <P> |
||
| 1020 | <DD><DL> |
||
| 1021 | </DL> |
||
| 1022 | </DD> |
||
| 1023 | <DD><DL> |
||
| 1024 | |||
| 1025 | <DT><B>Returns:</B><DD>a temporary copy of this vector. Use with care as this is backed by a single static Vector2 instance. v1.tmp().add( |
||
| 1026 | v2.tmp() ) will not work!</DL> |
||
| 1027 | </DD> |
||
| 1028 | </DL> |
||
| 1029 | <HR> |
||
| 1030 | |||
| 1031 | <A NAME="mul(com.badlogic.gdx.math.Matrix3)"><!-- --></A><H3> |
||
| 1032 | mul</H3> |
||
| 1033 | <PRE> |
||
| 1034 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>mul</B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> mat)</PRE> |
||
| 1035 | <DL> |
||
| 1036 | <DD>Multiplies this vector by the given matrix |
||
| 1037 | <P> |
||
| 1038 | <DD><DL> |
||
| 1039 | </DL> |
||
| 1040 | </DD> |
||
| 1041 | <DD><DL> |
||
| 1042 | <DT><B>Parameters:</B><DD><CODE>mat</CODE> - the matrix |
||
| 1043 | <DT><B>Returns:</B><DD>this vector</DL> |
||
| 1044 | </DD> |
||
| 1045 | </DL> |
||
| 1046 | <HR> |
||
| 1047 | |||
| 1048 | <A NAME="crs(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 1049 | crs</H3> |
||
| 1050 | <PRE> |
||
| 1051 | public float <B>crs</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> v)</PRE> |
||
| 1052 | <DL> |
||
| 1053 | <DD>Calculates the 2D cross product between this and the given vector. |
||
| 1054 | <P> |
||
| 1055 | <DD><DL> |
||
| 1056 | </DL> |
||
| 1057 | </DD> |
||
| 1058 | <DD><DL> |
||
| 1059 | <DT><B>Parameters:</B><DD><CODE>v</CODE> - the other vector |
||
| 1060 | <DT><B>Returns:</B><DD>the cross product</DL> |
||
| 1061 | </DD> |
||
| 1062 | </DL> |
||
| 1063 | <HR> |
||
| 1064 | |||
| 1065 | <A NAME="crs(float, float)"><!-- --></A><H3> |
||
| 1066 | crs</H3> |
||
| 1067 | <PRE> |
||
| 1068 | public float <B>crs</B>(float x, |
||
| 1069 | float y)</PRE> |
||
| 1070 | <DL> |
||
| 1071 | <DD>Calculates the 2D cross product between this and the given vector. |
||
| 1072 | <P> |
||
| 1073 | <DD><DL> |
||
| 1074 | </DL> |
||
| 1075 | </DD> |
||
| 1076 | <DD><DL> |
||
| 1077 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate of the other vector<DD><CODE>y</CODE> - the y-coordinate of the other vector |
||
| 1078 | <DT><B>Returns:</B><DD>the cross product</DL> |
||
| 1079 | </DD> |
||
| 1080 | </DL> |
||
| 1081 | <HR> |
||
| 1082 | |||
| 1083 | <A NAME="angle()"><!-- --></A><H3> |
||
| 1084 | angle</H3> |
||
| 1085 | <PRE> |
||
| 1086 | public float <B>angle</B>()</PRE> |
||
| 1087 | <DL> |
||
| 1088 | <DD><DL> |
||
| 1089 | </DL> |
||
| 1090 | </DD> |
||
| 1091 | <DD><DL> |
||
| 1092 | |||
| 1093 | <DT><B>Returns:</B><DD>the angle in degrees of this vector (point) relative to the x-axis. Angles are counter-clockwise and between 0 and |
||
| 1094 | 360.</DL> |
||
| 1095 | </DD> |
||
| 1096 | </DL> |
||
| 1097 | <HR> |
||
| 1098 | |||
| 1099 | <A NAME="setAngle(float)"><!-- --></A><H3> |
||
| 1100 | setAngle</H3> |
||
| 1101 | <PRE> |
||
| 1102 | public void <B>setAngle</B>(float angle)</PRE> |
||
| 1103 | <DL> |
||
| 1104 | <DD>Sets the angle of the vector. |
||
| 1105 | <P> |
||
| 1106 | <DD><DL> |
||
| 1107 | </DL> |
||
| 1108 | </DD> |
||
| 1109 | <DD><DL> |
||
| 1110 | <DT><B>Parameters:</B><DD><CODE>angle</CODE> - The angle to set.</DL> |
||
| 1111 | </DD> |
||
| 1112 | </DL> |
||
| 1113 | <HR> |
||
| 1114 | |||
| 1115 | <A NAME="rotate(float)"><!-- --></A><H3> |
||
| 1116 | rotate</H3> |
||
| 1117 | <PRE> |
||
| 1118 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>rotate</B>(float degrees)</PRE> |
||
| 1119 | <DL> |
||
| 1120 | <DD>Rotates the Vector2 by the given angle, counter-clockwise. |
||
| 1121 | <P> |
||
| 1122 | <DD><DL> |
||
| 1123 | </DL> |
||
| 1124 | </DD> |
||
| 1125 | <DD><DL> |
||
| 1126 | <DT><B>Parameters:</B><DD><CODE>degrees</CODE> - the angle in degrees</DL> |
||
| 1127 | </DD> |
||
| 1128 | </DL> |
||
| 1129 | <HR> |
||
| 1130 | |||
| 1131 | <A NAME="lerp(com.badlogic.gdx.math.Vector2, float)"><!-- --></A><H3> |
||
| 1132 | lerp</H3> |
||
| 1133 | <PRE> |
||
| 1134 | public <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>lerp</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> target, |
||
| 1135 | float alpha)</PRE> |
||
| 1136 | <DL> |
||
| 1137 | <DD>Linearly interpolates between this vector and the target vector by alpha which is in the range [0,1]. The result is stored |
||
| 1138 | in this vector. |
||
| 1139 | <P> |
||
| 1140 | <DD><DL> |
||
| 1141 | </DL> |
||
| 1142 | </DD> |
||
| 1143 | <DD><DL> |
||
| 1144 | <DT><B>Parameters:</B><DD><CODE>target</CODE> - The target vector<DD><CODE>alpha</CODE> - The interpolation coefficient |
||
| 1145 | <DT><B>Returns:</B><DD>This vector for chaining.</DL> |
||
| 1146 | </DD> |
||
| 1147 | </DL> |
||
| 1148 | <HR> |
||
| 1149 | |||
| 1150 | <A NAME="hashCode()"><!-- --></A><H3> |
||
| 1151 | hashCode</H3> |
||
| 1152 | <PRE> |
||
| 1153 | public int <B>hashCode</B>()</PRE> |
||
| 1154 | <DL> |
||
| 1155 | <DD><DL> |
||
| 1156 | <DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 1157 | </DD> |
||
| 1158 | <DD><DL> |
||
| 1159 | </DL> |
||
| 1160 | </DD> |
||
| 1161 | </DL> |
||
| 1162 | <HR> |
||
| 1163 | |||
| 1164 | <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
||
| 1165 | equals</H3> |
||
| 1166 | <PRE> |
||
| 1167 | public boolean <B>equals</B>(java.lang.Object obj)</PRE> |
||
| 1168 | <DL> |
||
| 1169 | <DD><DL> |
||
| 1170 | <DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 1171 | </DD> |
||
| 1172 | <DD><DL> |
||
| 1173 | </DL> |
||
| 1174 | </DD> |
||
| 1175 | </DL> |
||
| 1176 | <HR> |
||
| 1177 | |||
| 1178 | <A NAME="epsilonEquals(com.badlogic.gdx.math.Vector2, float)"><!-- --></A><H3> |
||
| 1179 | epsilonEquals</H3> |
||
| 1180 | <PRE> |
||
| 1181 | public boolean <B>epsilonEquals</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> obj, |
||
| 1182 | float epsilon)</PRE> |
||
| 1183 | <DL> |
||
| 1184 | <DD>Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing. |
||
| 1185 | <P> |
||
| 1186 | <DD><DL> |
||
| 1187 | </DL> |
||
| 1188 | </DD> |
||
| 1189 | <DD><DL> |
||
| 1190 | <DT><B>Parameters:</B><DD><CODE>obj</CODE> - <DD><CODE>epsilon</CODE> - |
||
| 1191 | <DT><B>Returns:</B><DD>whether the vectors are the same.</DL> |
||
| 1192 | </DD> |
||
| 1193 | </DL> |
||
| 1194 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 1195 | <HR> |
||
| 1196 | |||
| 1197 | |||
| 1198 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 1199 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 1200 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 1201 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 1202 | <TR> |
||
| 1203 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 1204 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 1205 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 1206 | <TR ALIGN="center" VALIGN="top"> |
||
| 1207 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 1208 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 1209 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 1210 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Vector2.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 1211 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 1212 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 1213 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 1214 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 1215 | </TR> |
||
| 1216 | </TABLE> |
||
| 1217 | </TD> |
||
| 1218 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 1219 | libgdx API</EM> |
||
| 1220 | </TD> |
||
| 1221 | </TR> |
||
| 1222 | |||
| 1223 | <TR> |
||
| 1224 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1225 | <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A> |
||
| 1226 | <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 1227 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1228 | <A HREF="../../../../index.html?com/badlogic/gdx/math/Vector2.html" target="_top"><B>FRAMES</B></A> |
||
| 1229 | <A HREF="Vector2.html" target="_top"><B>NO FRAMES</B></A> |
||
| 1230 | <SCRIPT type="text/javascript"> |
||
| 1231 | <!-- |
||
| 1232 | if(window==top) { |
||
| 1233 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 1234 | } |
||
| 1235 | //--> |
||
| 1236 | </SCRIPT> |
||
| 1237 | <NOSCRIPT> |
||
| 1238 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 1239 | </NOSCRIPT> |
||
| 1240 | |||
| 1241 | |||
| 1242 | </FONT></TD> |
||
| 1243 | </TR> |
||
| 1244 | <TR> |
||
| 1245 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1246 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 1247 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1248 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 1249 | </TR> |
||
| 1250 | </TABLE> |
||
| 1251 | <A NAME="skip-navbar_bottom"></A> |
||
| 1252 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 1253 | |||
| 1254 | <HR> |
||
| 1255 | |||
| 1256 | <div style="font-size:9pt"><i> |
||
| 1257 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 1258 | </i></div> |
||
| 1259 | |||
| 1260 | </BODY> |
||
| 1261 | </HTML> |