org.jscience.mathematics.geometry
Class Axis2Placement2D

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

public class Axis2Placement2D
extends Placement2D

�Q���� : ���_��?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�̂w���̕����x�N�g�� refDirection ��ێ?���܂�?B ���̋�?�?W�n��?A�E��n�̒���?W�n��\���̂�?A �x���̕���?A�w���̕���莩���I�Ɍ��肳��܂�?B �w���̕���?����� 90 �x��]���������x���̕��ƂȂ�܂�?B �w�x���̊e���x�N�g����?A?�ɂ��̑傫���� 1 �ɒP�ʉ����Ĉ����܂�?B �Ȃ�?A�����̃x�N�g���� GeometrySchemaFunction.build2Axes(refDirection) �ɂ�Bċ?�߂Ă��܂�?B

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

See Also:
Axis2Placement3D, Serialized Form

Field Summary
static Axis2Placement2D origin
          ��?
 
Constructor Summary
Axis2Placement2D(Point2D location, Vector2D refDirection)
          ��?
 
Method Summary
 Vector2D[] axes()
          ���̋�?
protected  Axis2Placement2D doTransformBy(boolean reverseTransform, CartesianTransformationOperator2D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Vector2D effectiveRefDirection()
          ���̋�?
protected  void output(java.io.PrintWriter writer, int indent)
          ?
 Vector2D refDirection()
          ���̋�?
 Axis2Placement2D reverseTransformBy(CartesianTransformationOperator2D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 CartesianTransformationOperator2D toCartesianTransformationOperator(double scale)
          ���̋�?
 Axis2Placement2D transformBy(boolean reverseTransform, CartesianTransformationOperator2D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Axis2Placement2D transformBy(CartesianTransformationOperator2D transformationOperator, java.util.Hashtable transformedGeometries)
          ���̓_��?
 Vector2D x()
          ���̋�?
 Vector2D y()
          ���̋�?
 
Methods inherited from class org.jscience.mathematics.geometry.Placement2D
dimension, is2D, 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, is3D, 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 Axis2Placement2D origin
��?W�n?B

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

Constructor Detail

Axis2Placement2D

public Axis2Placement2D(Point2D location,
                        Vector2D refDirection)
��?�?W�n�̌��_�ƂȂ�_�� �w���̕����x�N�g����^����?A �I�u�W�F�N�g��?\�z����?B

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

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

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

Parameters:
location - ���_�ƂȂ�_
refDirection - �w���̕����x�N�g��
See Also:
ConditionOfOperation, InvalidArgumentValueException
Method Detail

refDirection

public Vector2D 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 Vector2D effectiveRefDirection()
���̋�?�?W�n�̂w���̕��� (���I��) �x�N�g����Ԃ�?B

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

Returns:
�w���̕��� (���I��) �x�N�g��

x

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

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

y

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

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

axes

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

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

Returns:
�w/�x����\���P�ʃx�N�g���̔z��
See Also:
GeometrySchemaFunction.build2Axes(Vector2D)

toCartesianTransformationOperator

public CartesianTransformationOperator2D 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

doTransformBy

protected Axis2Placement2D doTransformBy(boolean reverseTransform,
                                         CartesianTransformationOperator2D 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 Axis2Placement2D transformBy(boolean reverseTransform,
                                    CartesianTransformationOperator2D 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 Axis2Placement2D transformBy(CartesianTransformationOperator2D 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 Axis2Placement2D reverseTransformBy(CartesianTransformationOperator2D 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