Package | Description |
---|---|
org.synthclipse.core.gl.camera.api | |
org.synthclipse.core.math | |
org.synthclipse.core.uniform | |
org.synthclipse.scripting.core | |
org.synthclipse.scripting.gl |
Modifier and Type | Method and Description |
---|---|
Vector2f |
ICamera2D.getCenter()
Gets center position of the camera.
|
Modifier and Type | Method and Description |
---|---|
void |
ICamera2D.setCenter(Vector2f center)
Sets center position of the camera.
|
Modifier and Type | Field and Description |
---|---|
static Vector2f |
Vector2f.UNIT_XY |
static Vector2f |
Vector2f.ZERO |
Modifier and Type | Method and Description |
---|---|
Vector2f |
Vector2f.add(Vector2f vec)
add adds a provided vector to this vector creating a
resultant vector which is returned. |
Vector2f |
Vector2f.add(Vector2f vec,
Vector2f result)
add adds this vector by vec and stores the
result in result . |
Vector2f |
Vector2f.addLocal(float addX,
float addY)
addLocal adds the provided values to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
Vector2f |
Vector2f.addLocal(Vector2f vec)
addLocal adds a provided vector to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
Vector2f |
Vector2f.clone() |
Vector2f |
Vector2f.copy() |
Vector2f |
Vector2f.divide(float scalar)
divide divides the values of this vector by a scalar and
returns the result. |
Vector2f |
Vector2f.divideLocal(float scalar)
divideLocal divides this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
Vector2f |
Vector2f.interpolate(Vector2f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from this to the
finalVec this=(1-changeAmnt)*this + changeAmnt * finalVec
|
Vector2f |
Vector2f.interpolate(Vector2f beginVec,
Vector2f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from beginVec to
finalVec this=(1-changeAmnt)*beginVec + changeAmnt * finalVec
|
Vector2f |
Vector2f.mult(float scalar)
mult multiplies this vector by a scalar. |
Vector2f |
Vector2f.mult(float scalar,
Vector2f product)
Multiplies this Vector2f's x and y by the scalar and stores the result in
product.
|
Vector2f |
Vector2f.multLocal(float scalar)
multLocal multiplies this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
Vector2f |
Vector2f.multLocal(Vector2f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector2f |
Vector2f.negate()
negate returns the negative of this vector. |
Vector2f |
Vector2f.negateLocal()
negateLocal negates the internal values of this vector. |
Vector2f |
Vector2f.normalize()
normalize returns the unit vector of this vector. |
Vector2f |
Vector2f.normalizeLocal()
normalizeLocal makes this vector into a unit vector of
itself. |
Vector2f |
Vector2f.set(float x,
float y)
set the x and y values of the vector
|
Vector2f |
Vector2f.set(Vector2f vec)
set the x and y values of the vector from another vector
|
Vector2f |
Vector2f.setX(float x) |
Vector2f |
Vector2f.setY(float y) |
Vector2f |
Vector2f.subtract(float valX,
float valY)
subtract subtracts the given x,y values from those of this
vector creating a new vector object. |
Vector2f |
Vector2f.subtract(Vector2f vec)
subtract subtracts the values of a given vector from those
of this vector creating a new vector object. |
Vector2f |
Vector2f.subtract(Vector2f vec,
Vector2f store)
subtract subtracts the values of a given vector from those
of this vector storing the result in the given vector object. |
Vector2f |
Vector2f.subtractLocal(float valX,
float valY)
subtractLocal subtracts the provided values from this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector2f |
Vector2f.subtractLocal(Vector2f vec)
subtractLocal subtracts a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector2f |
Vector2f.zero()
zero resets this vector's data to zero internally. |
Modifier and Type | Method and Description |
---|---|
Vector2f |
Vector2f.add(Vector2f vec)
add adds a provided vector to this vector creating a
resultant vector which is returned. |
Vector2f |
Vector2f.add(Vector2f vec,
Vector2f result)
add adds this vector by vec and stores the
result in result . |
Vector2f |
Vector2f.addLocal(Vector2f vec)
addLocal adds a provided vector to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
float |
Vector2f.angleBetween(Vector2f otherVector)
angleBetween returns (in radians) the angle required to
rotate a ray represented by this vector to lie colinear to a ray
described by the given vector. |
static int |
FastMath.counterClockwise(Vector2f p0,
Vector2f p1,
Vector2f p2)
Given 3 points in a 2d plane, this function computes if the points going from A-B-C
are moving counter clock wise.
|
Vector3f |
Vector2f.cross(Vector2f v)
cross calculates the cross product of this vector with a
parameter vector v. |
float |
Vector2f.determinant(Vector2f v) |
float |
Vector2f.distance(Vector2f v)
distance calculates the distance between this vector and
vector v. |
float |
Vector2f.distanceSquared(Vector2f v)
distanceSquared calculates the distance squared between this
vector and vector v. |
float |
Vector2f.dot(Vector2f vec)
dot calculates the dot product of this vector with a
provided vector. |
Vector2f |
Vector2f.interpolate(Vector2f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from this to the
finalVec this=(1-changeAmnt)*this + changeAmnt * finalVec
|
Vector2f |
Vector2f.interpolate(Vector2f beginVec,
Vector2f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from beginVec to
finalVec this=(1-changeAmnt)*beginVec + changeAmnt * finalVec
|
static boolean |
Vector2f.isValidVector(Vector2f vector)
Check a vector...
|
Vector2f |
Vector2f.mult(float scalar,
Vector2f product)
Multiplies this Vector2f's x and y by the scalar and stores the result in
product.
|
Vector2f |
Vector2f.multLocal(Vector2f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
static int |
FastMath.pointInsideTriangle(Vector2f t0,
Vector2f t1,
Vector2f t2,
Vector2f p)
Test if a point is inside a triangle.
|
Vector2f |
Vector2f.set(Vector2f vec)
set the x and y values of the vector from another vector
|
float |
Vector2f.smallestAngleBetween(Vector2f otherVector)
smallestAngleBetween returns (in radians) the minimum angle
between two vectors. |
Vector2f |
Vector2f.subtract(Vector2f vec)
subtract subtracts the values of a given vector from those
of this vector creating a new vector object. |
Vector2f |
Vector2f.subtract(Vector2f vec,
Vector2f store)
subtract subtracts the values of a given vector from those
of this vector storing the result in the given vector object. |
Vector2f |
Vector2f.subtractLocal(Vector2f vec)
subtractLocal subtracts a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Constructor and Description |
---|
Vector2f(Vector2f vector2f)
Creates a new Vector2f that contains the passed vector's information
|
Modifier and Type | Method and Description |
---|---|
Vector2f |
SliderVec2UC.getDefaultMaxValue() |
Vector2f |
SliderVec2UC.getDefaultMinValue() |
Vector2f |
SliderVec2UC.getDefaultStepSize() |
Vector2f |
SliderVec2UC.getDefaultValue() |
Vector2f |
SliderVec2UC.getMaxValue() |
Vector2f |
SliderVec2UC.getMinValue() |
Vector2f |
SliderVec2UC.getStepSize() |
static Vector2f |
DefaultStepSizeProvider.getStepSize(Vector2f minValue,
Vector2f maxValue) |
Vector2f |
SliderVec2UC.getValue() |
Modifier and Type | Method and Description |
---|---|
static Vector2f |
DefaultStepSizeProvider.getStepSize(Vector2f minValue,
Vector2f maxValue) |
void |
SliderVec2UC.setDefaultMaxValue(Vector2f defaultMaxValue) |
void |
SliderVec2UC.setDefaultMinValue(Vector2f defaultMinValue) |
void |
SliderVec2UC.setDefaultStepSize(Vector2f defaultStepSize) |
void |
SliderVec2UC.setDefaultValue(Vector2f defaultValue) |
void |
SliderVec2UC.setMaxValue(Vector2f maxValue) |
void |
SliderVec2UC.setMinValue(Vector2f minValue) |
void |
SliderVec2UC.setStepSize(Vector2f stepSize) |
void |
SliderVec2UC.setValue(Vector2f value) |
Modifier and Type | Method and Description |
---|---|
Vector2f |
JSNative.newVector2()
Creates a new 2D Vector with all components being zeros.
|
Vector2f |
JSNative.newVector2(float x,
float y)
Creates a new 2D Vector.
|
Modifier and Type | Method and Description |
---|---|
void |
JSFragxRenderer.setPostprocessUniform(int location,
Vector2f v)
Sets uniform variable of the postprocessing shader with GLSL's type
vec2 . |
void |
JSFragxRenderer.setPostprocessUniform(String name,
Vector2f v)
Sets uniform variable of the postprocessing shader with GLSL's type
vec2 . |
void |
JSFragxRenderer.setUniform(int location,
Vector2f v)
Sets uniform variable with GLSL's type
vec2 . |
void |
JSFragxRenderer.setUniform(String name,
Vector2f v)
Sets uniform variable with GLSL's type
vec2 . |
Modifier and Type | Method and Description |
---|---|
void |
GLSLProgram.setUniform(int location,
Vector2f v)
Sets uniform variable with GLSL's type
vec2 . |
void |
GLSLProgram.setUniform(String name,
Vector2f v)
Sets uniform variable with GLSL's type
vec2 . |