|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectkGLModel.KGLPoint
class KGLPoint
float型の頂点関連情報を保持、計算する為のクラス
コンストラクタの概要 | |
---|---|
KGLPoint(int in_num)
カラデータ作成 |
|
KGLPoint(KGLPoint source)
指定データ配列と同じ内容のデータで作成 |
メソッドの概要 | |
---|---|
float |
A()
要素Aを取り出す |
KGLPoint |
add(float[] in)
このクラスの要素に追加データを足し込む |
KGLPoint |
add(KGLPoint in)
このクラスの要素に追加データを足し込む |
float |
B()
要素Bを取り出す |
static KGLPoint |
create(float[] in_data)
指定データ配列と同じ内容のデータで作成 |
static KGLPoint |
create(KGLPoint in_data)
指定データ配列と同じ内容のデータで作成 |
static KGLPoint |
createCOLOR(float R,
float G,
float B)
指定カラーデータでこのクラスを作成 |
static KGLPoint |
createCOLOR(float R,
float G,
float B,
float A)
指定カラーデータでこのクラスを作成 |
static KGLPoint |
createUV(float U,
float V)
指定UVデータでこのクラスを作成 |
static KGLPoint |
createXYZ(float X,
float Y,
float Z)
指定頂点データでこのクラスを作成 |
float |
G()
要素Gを取り出す |
protected float[] |
getData()
内部データの取り出し |
KGLPoint |
normalize()
正規化をする 原点からの距離をもとめて、全要素を距離で割って0〜1の値にする |
float |
R()
要素Rを取り出す |
KGLPoint |
scale(float in)
このクラスの要素を指定倍する |
KGLPoint |
set_COLOR(float r,
float g,
float b)
カラーデータをこのクラスに設定する |
KGLPoint |
set_COLOR(float r,
float g,
float b,
float a)
カラーデータをこのクラスに設定する |
KGLPoint |
set_UV(float u,
float v)
2次元データをこのクラスに設定する |
KGLPoint |
set_XYZ(float x,
float y,
float z)
3次元データをこのクラスに設定する |
KGLPoint |
set(float[] src)
データをこのクラスに設定する |
KGLPoint |
set(KGLPoint src)
データをこのクラスに設定する |
java.lang.String |
toString()
内部データを文字列にする |
float |
U()
要素Uを取り出す |
float |
V()
要素Vを取り出す |
static KGLPoint |
vector(KGLPoint from,
KGLPoint to)
from地点〜to地点を原点からの点にする 0 from--->to 原点 ↓ 0--->returan値 |
float |
X()
要素xを取り出す |
float |
Y()
要素Yを取り出す |
float |
Z()
要素Zを取り出す |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public KGLPoint(int in_num)
in_num
- データ数public KGLPoint(KGLPoint source)
source
- 指定データメソッドの詳細 |
---|
public static KGLPoint create(KGLPoint in_data)
in_data
- 指定データ
public static KGLPoint create(float[] in_data)
in_data
- 指定データ
public static KGLPoint createUV(float U, float V)
U
- V
-
public static KGLPoint createXYZ(float X, float Y, float Z)
X
- Y
- Z
-
public static KGLPoint createCOLOR(float R, float G, float B)
R
- G
- B
-
public static KGLPoint createCOLOR(float R, float G, float B, float A)
R
- G
- B
- A
-
public KGLPoint normalize()
public static KGLPoint vector(KGLPoint from, KGLPoint to)
from
- to
-
protected float[] getData()
public KGLPoint set(KGLPoint src)
src
- データ
public KGLPoint set(float[] src)
src
- データ
public KGLPoint set_XYZ(float x, float y, float z)
x
- y
- z
-
public KGLPoint set_UV(float u, float v)
u
- v
-
public KGLPoint set_COLOR(float r, float g, float b)
r
- g
- b
-
public KGLPoint set_COLOR(float r, float g, float b, float a)
r
- g
- b
- a
-
public KGLPoint add(KGLPoint in)
in
- 追加データ
public KGLPoint add(float[] in)
in
- 追加データ
public KGLPoint scale(float in)
in
- 倍率
public float X()
public float Y()
public float Z()
public float U()
public float V()
public float R()
public float G()
public float B()
public float A()
public java.lang.String toString()
java.lang.Object
内の toString
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |