jp.digitalmuseum.napkit
クラス NapUtils

java.lang.Object
  上位を拡張 jp.digitalmuseum.napkit.NapUtils

public class NapUtils
extends java.lang.Object

Napkit-related utility class.

作成者:
Jun KATO

フィールドの概要
static int M00
           
static int M01
           
static int M02
           
static int M03
           
static int M10
           
static int M11
           
static int M12
           
static int M13
           
static int M20
           
static int M21
           
static int M22
           
static int M23
           
static int M30
           
static int M31
           
static int M32
           
static int M33
           
 
コンストラクタの概要
NapUtils()
           
 
メソッドの概要
static boolean calcProjection(double x, double y, double z, double[] modelViewMatrix, double[] cameraProjectionMatrix, int[] viewport, double[] result)
          This method just does the same calculation with gluProject method of GLU class.
static void convertMatrix4x4toGl(double[] matrix)
           
static ScreenPosition convertToScreenPosition(jp.nyatla.nyartoolkit.core.types.NyARIntPoint2d vertex)
           
static ScreenRectangle convertToScreenRectangle(jp.nyatla.nyartoolkit.core.types.NyARIntPoint2d[] vertex)
           
static double determinantMatrix4x4(double[] matrix)
           
static jp.nyatla.nyartoolkit.core.param.NyARParam getInitialCameraParameter()
          Returns a default camera parameter object.
static double[] invertMatrix4x4(double[] matrix)
           
static boolean invertMatrix4x4Out(double[] matrix, double[] result)
           
static void main(java.lang.String[] args)
           
static double[] multiplyMatrix4x4(double[] m1, double scale)
           
static double[] multiplyMatrix4x4(double[] m1, double[] m2)
           
static void multiplyMatrix4x4Out(double[] m1, double[] m2, double[] result)
           
static void multiplyMatrix4x4Out(double[] m1, double scale, double[] result)
           
static void printMatrix(double[] matrix)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

M00

public static int M00

M01

public static int M01

M02

public static int M02

M03

public static int M03

M10

public static int M10

M11

public static int M11

M12

public static int M12

M13

public static int M13

M20

public static int M20

M21

public static int M21

M22

public static int M22

M23

public static int M23

M30

public static int M30

M31

public static int M31

M32

public static int M32

M33

public static int M33
コンストラクタの詳細

NapUtils

public NapUtils()
メソッドの詳細

invertMatrix4x4

public static double[] invertMatrix4x4(double[] matrix)

main

public static void main(java.lang.String[] args)

printMatrix

public static void printMatrix(double[] matrix)

invertMatrix4x4Out

public static boolean invertMatrix4x4Out(double[] matrix,
                                         double[] result)

multiplyMatrix4x4

public static double[] multiplyMatrix4x4(double[] m1,
                                         double scale)

multiplyMatrix4x4Out

public static void multiplyMatrix4x4Out(double[] m1,
                                        double scale,
                                        double[] result)

multiplyMatrix4x4

public static double[] multiplyMatrix4x4(double[] m1,
                                         double[] m2)

multiplyMatrix4x4Out

public static void multiplyMatrix4x4Out(double[] m1,
                                        double[] m2,
                                        double[] result)

determinantMatrix4x4

public static double determinantMatrix4x4(double[] matrix)

convertMatrix4x4toGl

public static void convertMatrix4x4toGl(double[] matrix)

calcProjection

public static boolean calcProjection(double x,
                                     double y,
                                     double z,
                                     double[] modelViewMatrix,
                                     double[] cameraProjectionMatrix,
                                     int[] viewport,
                                     double[] result)
This method just does the same calculation with gluProject method of GLU class.

パラメータ:
x -
y -
z -
modelViewMatrix -
cameraProjectionMatrix -
viewport -
result -
戻り値:
関連項目:
GLU.gluProject(double, double, double, java.nio.DoubleBuffer, java.nio.DoubleBuffer, IntBuffer, java.nio.DoubleBuffer)

convertToScreenPosition

public static ScreenPosition convertToScreenPosition(jp.nyatla.nyartoolkit.core.types.NyARIntPoint2d vertex)

convertToScreenRectangle

public static ScreenRectangle convertToScreenRectangle(jp.nyatla.nyartoolkit.core.types.NyARIntPoint2d[] vertex)

getInitialCameraParameter

public static jp.nyatla.nyartoolkit.core.param.NyARParam getInitialCameraParameter()
Returns a default camera parameter object.



Copyright by Jun KATO (arc@dmz) at http://mr.digitalmuseum.jp/