Package com.jackmeng.stl
Class stl_Vector2f
java.lang.Object
com.jackmeng.stl.stl_Vector2f
public class stl_Vector2f
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description stl_Vector2f()
stl_Vector2f(float x, float y)
-
Method Summary
Modifier and Type Method Description stl_Vector2f
add(stl_Vector2f e)
stl_Vector2f
cross(stl_Vector2f e)
float
dist(stl_Vector2f e)
stl_Vector2f
div(float k)
float
dot(stl_Vector2f e)
stl_Vector2f
lerp(stl_Vector2f vec, float a)
float
mag()
stl_Vector2f
mult(float k)
stl_Vector2f
norm()
stl_Vector2f
reflect(stl_Vector2f vec)
stl_Vector2f
rot0(float theta)
void
rot1(float theta)
stl_Vector2f
sub(stl_Vector2f e)
float
theta()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
x
public float x -
y
public float y
-
-
Constructor Details
-
stl_Vector2f
public stl_Vector2f() -
stl_Vector2f
public stl_Vector2f(float x, float y)
-
-
Method Details
-
add
-
sub
-
mult
-
div
-
mag
public float mag() -
dot
-
cross
-
dist
-
norm
-
theta
public float theta() -
rot0
-
rot1
public void rot1(float theta) -
lerp
-
reflect
-