|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use GGVector | |
---|---|
ch.aplu.android | Package of the JDroidLib framework for developing Android applications with a focus on gaming and simulations. |
Uses of GGVector in ch.aplu.android |
---|
Fields in ch.aplu.android declared as GGVector | |
---|---|
GGVector |
GGCircle.center
The public vector to the center of the circle. |
Methods in ch.aplu.android that return GGVector | |
---|---|
GGVector |
GGVector.add(GGVector v)
Returns a new vector that is the vector sum of the current vector and the given vector. |
GGVector |
GGVector.clone()
Returns a new vector with the same coordinates as the current vector. |
GGVector |
GGCircle.getCenter()
Returns a copy of the center of the circle. |
GGVector |
GGRectangle.getCenter()
Returns a vector that points to the center of the rectangle. |
GGVector[] |
GGRectangle.getEdges()
Returns a GGVector array with 4 GGVectors whoses values are copies of the original edges. |
GGVector |
GGLine.getEndVector()
Returns the end vector. |
GGVector |
GGVector.getNormalized()
Returns a new vector with magnitude 1 in the direction of the given vector. |
static GGVector |
Actor.getRotatedPosition(GGVector position,
android.graphics.Point center,
double angle)
Returns a new position vector of given position vector rotated with given center point by given angle. |
GGVector |
GGLine.getStartVector()
Returns the start vector. |
GGVector[] |
GGLine.getVertexes()
Returns the vertexes of the line (startVector, endVector). |
GGVector[] |
GGRectangle.getVertexes()
Returns a GGVector array with 4 GGVectors whoses values are copies of the original vertexes. |
GGVector |
GGVector.invert()
Returns a new vector with inverted coordinates. |
GGVector |
GGVector.mult(double b)
Returns a new vector that is the product by a scalar of the current vector and the given double. |
GGVector |
GGVector.mult(float b)
Returns a new vector that is the product by a scalar of the current vector and the given float. |
GGVector |
GGVector.mult(int b)
Returns a new vector that is the product by a scalar of the current vector and the given integer. |
GGVector |
GGVector.sub(GGVector v)
Returns a new vector that is the vector difference of the current vector and the given vector. |
Methods in ch.aplu.android with parameters of type GGVector | |
---|---|
GGVector |
GGVector.add(GGVector v)
Returns a new vector that is the vector sum of the current vector and the given vector. |
double |
GGVector.distanceTo(GGVector v)
Returns the distance between the current vector and the given vector. |
double |
GGVector.dot(GGVector v)
Returns the scalar product (dot product) of the current vector with the given vector. |
static GGVector |
Actor.getRotatedPosition(GGVector position,
android.graphics.Point center,
double angle)
Returns a new position vector of given position vector rotated with given center point by given angle. |
boolean |
GGVector.isEqual(GGVector v)
Returns true, if the current vector is identical to the given vector. |
boolean |
GGCircle.isIntersecting(GGVector vector)
Returns true if the given points is part of the circle area. |
boolean |
GGLine.isIntersecting(GGVector v)
Returns true if the given point is part of the line segment. |
boolean |
GGRectangle.isIntersecting(GGVector vector,
boolean isRotatable)
Returns true if the given points is part of the rectangle area. |
boolean |
GGCircle.isIntersecting(GGVector imageCenter,
double imageDirection,
android.graphics.Bitmap image,
boolean isRotatable)
Returns true, if area of the current circle intersects the non-transparant area of the given image. |
boolean |
GGLine.isIntersecting(GGVector imageCenter,
double imageDirection,
android.graphics.Bitmap image,
boolean isRotatable)
Returns true, if at least one point of the line segment (casted to int values) points to a non-transparant pixel of the given image. |
boolean |
GGVector.isIntersecting(GGVector imageCenter,
double imageDirection,
android.graphics.Bitmap image,
boolean isRotatable)
Returns true, if the current vector (casted to int values) points to a non-transparant pixel of the given image. |
void |
GGRectangle.rotate(GGVector rotationCenter,
double angle)
Rotates with given rotation center. |
GGVector |
GGVector.sub(GGVector v)
Returns a new vector that is the vector difference of the current vector and the given vector. |
void |
GGCircle.translate(GGVector v)
Performs a translation by the given vector. |
void |
GGLine.translate(GGVector v)
Performs a translation by the given vector. |
void |
GGRectangle.translate(GGVector v)
Translates by the given vector. |
Constructors in ch.aplu.android with parameters of type GGVector | |
---|---|
GGCircle(GGVector center,
double radius)
Constructs a circle with given center and radius. |
|
GGLine(GGVector[] vertexes)
Creates a new GGLine from given start and end point vertexes. |
|
GGLine(GGVector startVector,
GGVector endVector)
Creates a new GGLine from given start and end point. |
|
GGRectangle(GGVector[] vertexes)
Creates a new GGRectangle from given vertexes. |
|
GGRectangle(GGVector center,
double direction,
double width,
double height)
Creates a new GGRectangle from given center, direction, width and height. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |