org.jscience.mathematics.geometry
Class Axis2Placement3D

java.lang.Object
  extended by org.jscience.mathematics.geometry.GeometryElement
      extended by org.jscience.mathematics.geometry.AbstractPlacement
          extended by org.jscience.mathematics.geometry.Placement3D
              extended by org.jscience.mathematics.geometry.Axis2Placement3D
All Implemented Interfaces:
java.io.Serializable

public class Axis2Placement3D
extends Placement3D

�R���� : ���_��?W�Ƃy������тw����w�肷����Œ�`���ꂽ��?�?W�n (�z�u?��) ��\���N���X?B

���̃N���X��?A �~??��?��񎟋Ȗʂ̈ʒu��X��������?A ?W�ϊ��̕ϊ�?s��̎w���Ȃǂɗ��p����܂�?B

���̃N���X�̃C���X�^���X��?A ��?�?W�n�̌��_�ƂȂ�_ location ��?A ��?�?W�n�̂y���̕����x�N�g�� axis ����� axis ��@?���Ƃ��镽�ʂ�?����e����邱�Ƃ� �w���̕��숒肷��x�N�g�� refDirection ��ێ?���܂�?B ���̋�?�?W�n��?A�E��n�̒���?W�n��\���̂�?A �x���̕���?A�y��?^�w���̕���莩���I�Ɍ��肳��܂�?B �y���Ƃw���̊O?ϕ��x���̕��ɂȂ�܂�?B �w�x�y�̊e���x�N�g����?A?�ɂ��̑傫���� 1 �ɒP�ʉ����Ĉ����܂�?B �Ȃ�?A�����̃x�N�g���� GeometrySchemaFunction.buildAxes(axis, refDirection) �ɂ�Bċ?�߂Ă��܂�?B

location �ɗ^����_�ɂ͓B�?��͂Ȃ�?A Point3D �N���X�̔C�ӂ̓_��^���邱�Ƃ��ł��܂���?A null ��w�肷�邱�Ƃ͂ł��܂���?B axis ����� refDirection �ɗ^����x�N�g�� Vector3D �͓BɒP�ʉ�����Ă���K�v�͂���܂���?A �[�?�x�N�g����^���邱�Ƃ͂ł��܂���?B �Ȃ�?Aaxis ����� refDirection �ɗ^����x�N�g���� �w�肵�Ȃ� (null ��w�肷��) ���Ƃ�ł��܂�?B axis �� null �Ƃ����?A�y���̕��� (0, 0, 1) �ɓ�������̂Ɖ�߂���܂�?B refDirection �� null �Ƃ����?A refDirection �̕��� (1, 0, 0) �ɓ�������̂Ɖ�߂���܂�?B

�܂�?Aaxis �� refDirection ��?A�t���܂߂�?A ����̕���w���Ă͂����܂���?B

See Also:
Axis1Placement3D, Axis2Placement2D, Serialized Form

Field Summary
static Axis2Placement3D origin
          ��?
 
Constructor Summary
Axis2Placement3D(Point3D location, Vector3D axis, Vector3D refDirection)
          ��?
 
Method Summary
 Vector3D[] axes()
          ���̋�?
 Vector3D axis()
          ���̋�?
protected  Axis2Placement3D doTransformBy(boolean reverseTransform, CartesianTransformationOperator3D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Vector3D effectiveAxis()
          ���̋�?
 Vector3D effectiveRefDirection()
          ���̋�?
protected  void output(java.io.PrintWriter writer, int indent)
          ?
 Axis2Placement3D parallelTranslate(Vector3D moveVec)
          ���̋�?
 Vector3D refDirection()
          ���̋�?
 Axis2Placement3D reverseTransformBy(CartesianTransformationOperator3D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 CartesianTransformationOperator3D toCartesianTransformationOperator()
          ���̋�?
 CartesianTransformationOperator3D toCartesianTransformationOperator(double scale)
          ���̋�?
 Axis2Placement3D transformBy(boolean reverseTransform, CartesianTransformationOperator3D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Axis2Placement3D transformBy(CartesianTransformationOperator3D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Vector3D x()
          ���̋�?
 Vector3D y()
          ���̋�?
 Vector3D z()
          ���̋�?
 
Methods inherited from class org.jscience.mathematics.geometry.Placement3D
dimension, is3D, location
 
Methods inherited from class org.jscience.mathematics.geometry.AbstractPlacement
isPlacement
 
Methods inherited from class org.jscience.mathematics.geometry.GeometryElement
getClassName, getToleranceForAngle, getToleranceForAngleAsObject, getToleranceForDistance, getToleranceForDistance2, getToleranceForDistanceAsObject, getToleranceForParameter, getToleranceForParameterAsObject, getToleranceForRealNumber, getToleranceForRealNumberAsObject, is1D, is2D, isCurve, isFreeform, isParametric, isPoint, isSurface, isTransformationOperator, isVector, makeIndent, output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origin

public static final Axis2Placement3D origin
��?W�n?B

(0, 0, 0) �촓_?A (0, 0, 1) �� Z ���̕��?A (1, 0, 0) �� X ���̕��Ƃ���?W�n?B

Constructor Detail

Axis2Placement3D

public Axis2Placement3D(Point3D location,
                        Vector3D axis,
                        Vector3D refDirection)
��?�?W�n�̌��_�ƂȂ�_�� �y���̕����x�N�g������� �w���̕��숒肷��x�N�g����^����?A �I�u�W�F�N�g��?\�z����?B

location �� null ��?�?��ɂ�?A InvalidArgumentValueException �̗�O��?�����?B

axis �� null �ł�?\��Ȃ�?B axis �� null ��?�?��ɂ�?A �y���̕��� (0, 0, 1) �ɓ�������̂Ɖ�߂����?B

refDirection �� null �ł�?\��Ȃ�?B refDirection �� null ��?�?��ɂ�?A refDirection �̕��� (1, 0, 0) �ɓ�������̂Ɖ�߂����?B

axis ���邢�� refDirection �̑傫����?A ��?�?ݒ肳��Ă��鉉�Z?�?�̋����̋��e��?��ȉ���?�?��ɂ�?A InvalidArgumentValueException �̗�O��?�����?B

�����?Aaxis �� refDirection �̊O?ς̑傫���� ��?�?ݒ肳��Ă��鉉�Z?�?�̋����̋��e��?��ȉ���?�?��ɂ�?A InvalidArgumentValueException �̗�O��?�����?B

Parameters:
location - ��?�?W�n�̌��_
axis - �y���̕����x�N�g��
refDirection - �w���̕��숒肷��x�N�g��
See Also:
ConditionOfOperation, InvalidArgumentValueException
Method Detail

axis

public Vector3D axis()
���̋�?�?W�n�̂y���̕���\���x�N�g����Ԃ�?B

�I�u�W�F�N�g��?\�z���ɗ^����ꂽ axis ��Ԃ�?B ��B�?Anull ���Ԃ邱�Ƃ �肤��?B

Returns:
�y���̕���\���x�N�g��

effectiveAxis

public Vector3D effectiveAxis()
���̋�?�?W�n�̂y���̕���\�� (���I��) �x�N�g����Ԃ�?B

axis �� null �łȂ����?Aaxis ��Ԃ�?B axis �� null �Ȃ��?A(0, 0, 1) �̃x�N�g����Ԃ�?B

Returns:
�y���̕���\�� (���I��) �x�N�g��

refDirection

public Vector3D refDirection()
���̋�?�?W�n�̂w���̕��숒肷��x�N�g����Ԃ�?B

�I�u�W�F�N�g��?\�z���ɗ^����ꂽ refDirection ��Ԃ�?B ��B�?Anull ���Ԃ邱�Ƃ �肤��?B

Returns:
�w���̕��숒肷��x�N�g��

effectiveRefDirection

public Vector3D effectiveRefDirection()
���̋�?�?W�n�̂w���̕��숒肷�� (���I��) �x�N�g����Ԃ�?B

refDirection �� null �łȂ����?ArefDirection ��Ԃ�?B refDirection �� null �Ȃ��?A(1, 0, 0) �̃x�N�g����Ԃ�?B

Returns:
�w���̕��숒肷�� (���I��) �x�N�g��

x

public Vector3D x()
���̋�?�?W�n�̂w����\���P�ʃx�N�g����Ԃ�?B

Returns:
�w����\���P�ʃx�N�g��

y

public Vector3D y()
���̋�?�?W�n�̂x����\���P�ʃx�N�g����Ԃ�?B

Returns:
�x����\���P�ʃx�N�g��

z

public Vector3D z()
���̋�?�?W�n�̂y����\���P�ʃx�N�g����Ԃ�?B

Returns:
�y����\���P�ʃx�N�g��

axes

public Vector3D[] axes()
���̋�?�?W�n�̂w/�x/�y����\���P�ʃx�N�g����Ԃ�?B

���ʂƂ��ĕԂ�z���?�?��̗v�f���w��?A ��Ԗڂ̗v�f���x��?A �O�Ԗڂ̗v�f���y����\��?B

Returns:
�w/�x/�y����\���P�ʃx�N�g���̔z��
See Also:
GeometrySchemaFunction.buildAxes(Vector3D,Vector3D)

parallelTranslate

public Axis2Placement3D parallelTranslate(Vector3D moveVec)
���̋�?�?W�n�̌��_�ƂȂ�_��?A�^����ꂽ�x�N�g����?]�B� ��?s�ړ���������?�?W�n��Ԃ�?B

Parameters:
moveVec - ��?s�ړ�������Ɨʂ�w�肷��x�N�g��
Returns:
��?s�ړ���̋�?�?W�n

toCartesianTransformationOperator

public CartesianTransformationOperator3D toCartesianTransformationOperator(double scale)
���̋�?�?W�n������I��?W�n�ւ�?W�ϊ����Z�q��Ԃ�?B

Parameters:
scale - �X�P?[�����O�̗ʂ�K�肷��l
Returns:
�X�P?[�����O��܂�?W�ϊ����Z�q
See Also:
toCartesianTransformationOperator()

toCartesianTransformationOperator

public CartesianTransformationOperator3D toCartesianTransformationOperator()
���̋�?�?W�n������I��?W�n�ւ�?W�ϊ����Z�q (?k�ڔ� 1 : 1) ��Ԃ�?B

Returns:
�X�P?[�����O��܂܂Ȃ�?W�ϊ����Z�q
See Also:
toCartesianTransformationOperator(double)

doTransformBy

protected Axis2Placement3D doTransformBy(boolean reverseTransform,
                                         CartesianTransformationOperator3D transformationOperator,
                                         java.util.Hashtable transformedGeometries)
���̓_��?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

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

transformBy

public Axis2Placement3D transformBy(boolean reverseTransform,
                                    CartesianTransformationOperator3D transformationOperator,
                                    java.util.Hashtable transformedGeometries)
���̓_��?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

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

transformBy

public Axis2Placement3D transformBy(CartesianTransformationOperator3D transformationOperator,
                                    java.util.Hashtable transformedGeometries)
���̓_��?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

Parameters:
transformationOperator - �􉽓I�ϊ����Z�q
transformedGeometries - ��ɓ��l�̕ϊ���{�����􉽗v�f��܂ރn�b�V���e?[�u��
Returns:
�ϊ���̊􉽗v�f

reverseTransformBy

public Axis2Placement3D reverseTransformBy(CartesianTransformationOperator3D transformationOperator,
                                           java.util.Hashtable transformedGeometries)
���̓_��?A�^����ꂽ�􉽓I�ϊ����Z�q�ŋt�ϊ�����?B

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

this �� transformedGeometries ��ɃL?[�Ƃ��đ�?݂��Ȃ�?�?��ɂ�?A this �� transformationOperator �ŋt�ϊ�������̂�Ԃ�?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 �ŋt�ϊ�������̂�Ԃ�?B

Parameters:
transformationOperator - �􉽓I�ϊ����Z�q
transformedGeometries - ��ɓ��l�̕ϊ���{�����􉽗v�f��܂ރn�b�V���e?[�u��
Returns:
�t�ϊ���̊􉽗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