org.jscience.mathematics.geometry
Class LiteralVector3D

java.lang.Object
  extended by org.jscience.mathematics.geometry.GeometryElement
      extended by org.jscience.mathematics.geometry.AbstractVector
          extended by org.jscience.mathematics.geometry.Vector3D
              extended by org.jscience.mathematics.geometry.LiteralVector3D
All Implemented Interfaces:
java.io.Serializable

public class LiteralVector3D
extends Vector3D

�R����?F�e?�������?��Œ�`���ꂽ�x�N�g����\���N���X?B

See Also:
HomogeneousVector3D, Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.geometry.Vector3D
minusI, minusJ, minusK, plusI, plusJ, plusK, xUnitVector, yUnitVector, zeroVector, zUnitVector
 
Constructor Summary
LiteralVector3D(double[] c)
          (c[0], c[1], c[2]) �Œ�`�����I�u�W�F�N�g��?
LiteralVector3D(double alpha, double delta)
          Simple constructor.
LiteralVector3D(double x, double y, double z)
          (x, y, z) �Œ�`�����I�u�W�F�N�g��?
LiteralVector3D(double a, LiteralVector3D u)
          Multiplicative constructor Build a vector from another one and a scale factor.
LiteralVector3D(double a, LiteralVector3D u, double b, LiteralVector3D v)
          Linear constructor Build a vector from two other ones and corresponding scale factors.
 
Method Summary
protected  Vector3D doTransformBy(boolean reverseTransform, CartesianTransformationOperator3D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̃x�N�g����?
protected  void output(java.io.PrintWriter writer, int indent)
          ?
 double x()
          X ?
 double y()
          Y ?
 double z()
          Z ?
 
Methods inherited from class org.jscience.mathematics.geometry.Vector3D
add, angleWith, crossProduct, dimension, divide, dotProduct, getDouble3Vector, identical, identicalDirection, is3D, multiply, norm, of, of, orthogonal, parallelDirection, project, reverse, reverseTransformBy, subtract, toDoubleArray, toPoint3D, toPoint3D, transformBy, transformBy, unitized, verticalVector, xUnitVector, yUnitVector, zeroVector, zUnitVector
 
Methods inherited from class org.jscience.mathematics.geometry.AbstractVector
isVector, length, magnitude
 
Methods inherited from class org.jscience.mathematics.geometry.GeometryElement
getClassName, getToleranceForAngle, getToleranceForAngleAsObject, getToleranceForDistance, getToleranceForDistance2, getToleranceForDistanceAsObject, getToleranceForParameter, getToleranceForParameterAsObject, getToleranceForRealNumber, getToleranceForRealNumberAsObject, is1D, is2D, isCurve, isFreeform, isParametric, isPlacement, isPoint, isSurface, isTransformationOperator, makeIndent, output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralVector3D

public LiteralVector3D(double x,
                       double y,
                       double z)
(x, y, z) �Œ�`�����I�u�W�F�N�g��?\�z����?B

Parameters:
x - X ?���
y - Y ?���
z - Z ?���

LiteralVector3D

public LiteralVector3D(double[] c)
(c[0], c[1], c[2]) �Œ�`�����I�u�W�F�N�g��?\�z����?B

Parameters:
c - ?����̔z��

LiteralVector3D

public LiteralVector3D(double alpha,
                       double delta)
Simple constructor. Build a vector from its azimuthal coordinates

Parameters:
alpha - azimuth around Z (0 is +X, PI/2 is +Y, PI is -X and 3PI/2 is -Y)
delta - elevation above (XY) plane, from -PI to +PI

LiteralVector3D

public LiteralVector3D(double a,
                       LiteralVector3D u)
Multiplicative constructor Build a vector from another one and a scale factor. The vector built will be a * u

Parameters:
a - scale factor
u - base (unscaled) vector

LiteralVector3D

public LiteralVector3D(double a,
                       LiteralVector3D u,
                       double b,
                       LiteralVector3D v)
Linear constructor Build a vector from two other ones and corresponding scale factors. The vector built will be a * u + b * v

Parameters:
a - first scale factor
u - first base (unscaled) vector
b - second scale factor
v - second base (unscaled) vector
Method Detail

x

public double x()
X ?�����Ԃ�?B

Specified by:
x in class Vector3D
Returns:
�x�N�g���� X ?���

y

public double y()
Y ?�����Ԃ�?B

Specified by:
y in class Vector3D
Returns:
�x�N�g���� Y ?���

z

public double z()
Z ?�����Ԃ�?B

Specified by:
z in class Vector3D
Returns:
�x�N�g���� Z ?���

doTransformBy

protected Vector3D doTransformBy(boolean reverseTransform,
                                 CartesianTransformationOperator3D transformationOperator,
                                 java.util.Hashtable transformedGeometries)
���̃x�N�g����?A�^����ꂽ�􉽓I�ϊ����Z�q�ŕϊ�����?B

transformedGeometries ��?A �ϊ��O�̊􉽗v�f��L?[�Ƃ�?A �ϊ���̊􉽗v�f��l�Ƃ���n�b�V���e?[�u���ł���?B

this �� transformedGeometries ��ɃL?[�Ƃ��đ�?݂��Ȃ�?�?��ɂ�?A this �� transformationOperator �ŕϊ�������̂�Ԃ�?B ����?ۂɃ?�\�b�h�Ք�ł� this ��L?[?A �ϊ����ʂ�l�Ƃ��� transformedGeometries �ɒljB���?B

this �� transformedGeometries ��Ɋ�ɃL?[�Ƃ��đ�?݂���?�?��ɂ�?A ��?ۂ̕ϊ���?s�Ȃ킸?A���̃L?[�ɑΉ�����l��Ԃ�?B ����?��?��?ċA�I��?s�Ȃ���?B

transformedGeometries �� null �ł�?\��Ȃ�?B transformedGeometries �� null ��?�?��ɂ�?A ?�� this �� transformationOperator �ŕϊ�������̂�Ԃ�?B

Specified by:
doTransformBy in class Vector3D
Parameters:
reverseTransform - �t�ϊ�����̂ł���� true?A�����łȂ���� false
transformationOperator - �􉽓I�ϊ����Z�q
transformedGeometries - ��ɓ��l�̕ϊ���{�����􉽗v�f��܂ރn�b�V���e?[�u��
Returns:
�ϊ���̊􉽗v�f

output

protected void output(java.io.PrintWriter writer,
                      int indent)
?o�̓X�g��?[���Ɍ`?�?���?o�͂���?B

Specified by:
output in class GeometryElement
Parameters:
writer - PrintWriter
indent - �C���f���g��?[��
See Also:
GeometryElement