Package games.stendhal.common.math
Class Algebra
java.lang.Object
games.stendhal.common.math.Algebra
Algebraic helper functions-
- Author:
- silvio
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add_Vecf(float[] result, float[] a, float b)
static void
add_Vecf(float[] result, float[] a, float[] b)
static void
cross_Vec2f(float[] result, float[] a)
static void
cross_Vec3f(float[] result, float[] a, float[] b)
static float
distance_Vecf(float[] a, float[] b)
static float
distanceSqrt_Vecf(float[] a, float[] b)
static void
div_Vecf(float[] result, float[] a, float b)
static void
div_Vecf(float[] result, float[] a, float[] b)
static float
dot_Vecf(float[] a, float[] b)
static float[]
homogenousf(float... args)
static boolean
isEqual_Scalf(float a, float b)
static boolean
isEqual_Vecf(float[] a, float[] b)
static float
length_Vecf(float[] v)
static float
lengthSqrt_Vecf(float[] v)
static float[]
mat(boolean horizontalVectors, float[]... vectors)
static void
mov_Vecf(float[] result, float a)
static void
mov_Vecf(float[] result, float[] vec)
static float[]
mul_mat(float[] a, int rowsA, int colsA, float[] b, int rowsB, int colsB)
static void
mul_Vecf(float[] result, float[] a, float b)
static void
mul_Vecf(float[] result, float[] a, float[] b)
static void
normalize_Vecf(float[] result, float[] a)
static void
sub_Vecf(float[] result, float[] a, float b)
static void
sub_Vecf(float[] result, float[] a, float[] b)
static float[]
vecf(float... args)
-
Field Details
-
EPSILON
public static final float EPSILON- See Also:
- Constant Field Values
-
-
Constructor Details
-
Algebra
public Algebra()
-
-
Method Details
-
vecf
public static float[] vecf(float... args) -
homogenousf
public static float[] homogenousf(float... args) -
isEqual_Scalf
public static boolean isEqual_Scalf(float a, float b) -
isEqual_Vecf
public static boolean isEqual_Vecf(float[] a, float[] b) -
mov_Vecf
public static void mov_Vecf(float[] result, float[] vec) -
mov_Vecf
public static void mov_Vecf(float[] result, float a) -
add_Vecf
public static void add_Vecf(float[] result, float[] a, float[] b) -
add_Vecf
public static void add_Vecf(float[] result, float[] a, float b) -
sub_Vecf
public static void sub_Vecf(float[] result, float[] a, float[] b) -
sub_Vecf
public static void sub_Vecf(float[] result, float[] a, float b) -
mul_Vecf
public static void mul_Vecf(float[] result, float[] a, float[] b) -
mul_Vecf
public static void mul_Vecf(float[] result, float[] a, float b) -
div_Vecf
public static void div_Vecf(float[] result, float[] a, float[] b) -
div_Vecf
public static void div_Vecf(float[] result, float[] a, float b) -
dot_Vecf
public static float dot_Vecf(float[] a, float[] b) -
cross_Vec3f
public static void cross_Vec3f(float[] result, float[] a, float[] b) -
cross_Vec2f
public static void cross_Vec2f(float[] result, float[] a) -
lengthSqrt_Vecf
public static float lengthSqrt_Vecf(float[] v) -
length_Vecf
public static float length_Vecf(float[] v) -
normalize_Vecf
public static void normalize_Vecf(float[] result, float[] a) -
distanceSqrt_Vecf
public static float distanceSqrt_Vecf(float[] a, float[] b) -
distance_Vecf
public static float distance_Vecf(float[] a, float[] b) -
mat
public static float[] mat(boolean horizontalVectors, float[]... vectors) -
mul_mat
public static float[] mul_mat(float[] a, int rowsA, int colsA, float[] b, int rowsB, int colsB)
-