IT. Expert System.

Android Reference

MathUtils


android.util

Class MathUtils



  • public final class MathUtils
    extends Object
    A class that contains utility methods related to numbers.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static float abs(float v)
      static float acos(float value)
      static float asin(float value)
      static float atan(float value)
      static float atan2(float a, float b)
      static float constrain(float amount, float low, float high)
      static int constrain(int amount, int low, int high)
      static long constrain(long amount, long low, long high)
      static float degrees(float radians)
      static float dist(float x1, float y1, float x2, float y2)
      static float dist(float x1, float y1, float z1, float x2, float y2, float z2)
      static float exp(float a)
      static float lerp(float start, float stop, float amount)
      static float log(float a)
      static float mag(float a, float b)
      static float mag(float a, float b, float c)
      static float map(float minStart, float minStop, float maxStart, float maxStop, float value)
      static float max(float a, float b)
      static float max(float a, float b, float c)
      static float max(int a, int b)
      static float max(int a, int b, int c)
      static float min(float a, float b)
      static float min(float a, float b, float c)
      static float min(int a, int b)
      static float min(int a, int b, int c)
      static float norm(float start, float stop, float value)
      static float pow(float a, float b)
      static float radians(float degrees)
      static float random(float howbig)
      static float random(float howsmall, float howbig)
      static int random(int howbig)
      static int random(int howsmall, int howbig)
      static void randomSeed(long seed)
      static float sq(float v)
      static float tan(float angle)
    • Method Detail

      • abs

        public static float abs(float v)
      • constrain

        public static int constrain(int amount,
                    int low,
                    int high)
      • constrain

        public static long constrain(long amount,
                     long low,
                     long high)
      • constrain

        public static float constrain(float amount,
                      float low,
                      float high)
      • log

        public static float log(float a)
      • exp

        public static float exp(float a)
      • pow

        public static float pow(float a,
                float b)
      • max

        public static float max(float a,
                float b)
      • max

        public static float max(int a,
                int b)
      • max

        public static float max(float a,
                float b,
                float c)
      • max

        public static float max(int a,
                int b,
                int c)
      • min

        public static float min(float a,
                float b)
      • min

        public static float min(int a,
                int b)
      • min

        public static float min(float a,
                float b,
                float c)
      • min

        public static float min(int a,
                int b,
                int c)
      • dist

        public static float dist(float x1,
                 float y1,
                 float x2,
                 float y2)
      • dist

        public static float dist(float x1,
                 float y1,
                 float z1,
                 float x2,
                 float y2,
                 float z2)
      • mag

        public static float mag(float a,
                float b)
      • mag

        public static float mag(float a,
                float b,
                float c)
      • sq

        public static float sq(float v)
      • radians

        public static float radians(float degrees)
      • degrees

        public static float degrees(float radians)
      • acos

        public static float acos(float value)
      • asin

        public static float asin(float value)
      • atan

        public static float atan(float value)
      • atan2

        public static float atan2(float a,
                  float b)
      • tan

        public static float tan(float angle)
      • lerp

        public static float lerp(float start,
                 float stop,
                 float amount)
      • norm

        public static float norm(float start,
                 float stop,
                 float value)
      • map

        public static float map(float minStart,
                float minStop,
                float maxStart,
                float maxStop,
                float value)
      • random

        public static int random(int howbig)
      • random

        public static int random(int howsmall,
                 int howbig)
      • random

        public static float random(float howbig)
      • random

        public static float random(float howsmall,
                   float howbig)
      • randomSeed

        public static void randomSeed(long seed)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 76 / 158770693. Delta: 0.07857 с