|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.math.Line
public class Line
Line defines a line. Where a line is defined as infinite along
two points. The two points of the line are defined as the origin and direction.
| コンストラクタの概要 | |
|---|---|
Line()
Constructor instantiates a new Line object. |
|
Line(Vector3f origin,
Vector3f direction)
Constructor instantiates a new Line object. |
|
| メソッドの概要 | |
|---|---|
Line |
clone()
|
float |
distance(Vector3f point)
|
float |
distanceSquared(Vector3f point)
|
Vector3f |
getDirection()
getDirection returns the direction of the line. |
Vector3f |
getOrigin()
getOrigin returns the origin of the line. |
void |
orthogonalLineFit(java.nio.FloatBuffer points)
|
Vector3f |
random()
random determines a random point along the line. |
Vector3f |
random(Vector3f result)
random determines a random point along the line. |
void |
read(JmeImporter e)
|
void |
setDirection(Vector3f direction)
setDirection sets the direction of the line. |
void |
setOrigin(Vector3f origin)
setOrigin sets the origin of the line. |
void |
write(JmeExporter e)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Line()
Line object. The origin and
direction are set to defaults (0,0,0).
public Line(Vector3f origin,
Vector3f direction)
Line object. The origin
and direction are set via the parameters.
origin - the origin of the line.direction - the direction of the line.| メソッドの詳細 |
|---|
public Vector3f getOrigin()
getOrigin returns the origin of the line.
public void setOrigin(Vector3f origin)
setOrigin sets the origin of the line.
origin - the origin of the line.public Vector3f getDirection()
getDirection returns the direction of the line.
public void setDirection(Vector3f direction)
setDirection sets the direction of the line.
direction - the direction of the line.public float distanceSquared(Vector3f point)
public float distance(Vector3f point)
public void orthogonalLineFit(java.nio.FloatBuffer points)
public Vector3f random()
random determines a random point along the line.
public Vector3f random(Vector3f result)
random determines a random point along the line.
result - Vector to store result in
public void write(JmeExporter e)
throws java.io.IOException
Savable 内の writejava.io.IOException
public void read(JmeImporter e)
throws java.io.IOException
Savable 内の readjava.io.IOExceptionpublic Line clone()
java.lang.Object 内の clone
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||