org.jscience.mathematics.geometry
Class EnclosingBox2D

java.lang.Object
  extended by org.jscience.mathematics.geometry.EnclosingBox2D

public class EnclosingBox2D
extends java.lang.Object

�Q���� : (�`?�v�f�̑�?ݔ͈͂�) �ӂ������ɕ�?s�ȋ�`��\���N���X?B

���̃N���X�̃C���X�^���X��?A ��`�� ?�����̓_ (?�?��l) ��\���_ min �� �E?��̓_ (?ő�l) ��\���_ max ��ێ?����?B


Constructor Summary
EnclosingBox2D(double minX, double minY, double maxX, double maxY)
          ��`��?
EnclosingBox2D(Point2D[] points)
          �^����ꂽ�_�Q���߂�?
EnclosingBox2D(Point2D min, Point2D max)
          ��`��?
 
Method Summary
 boolean hasIntersection(EnclosingBox2D mate)
          ���̋�`���^����ꂽ���̋�`�ƌ��邩�ۂ���Ԃ�?
 Point2D max()
          ���̋�`�̉E?
 Point2D min()
          ���̋�`��?
 Point2D[] toArray()
          ���̋�`��?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnclosingBox2D

public EnclosingBox2D(Point2D min,
                      Point2D max)
��`��?�?�/?ő�l��\���_��^���ăI�u�W�F�N�g��?\�z����?B

min �̂���?����� max �̑Ή�����?�������傫��?�?��ɂ� InvalidArgumentValueException �̗�O��?�����?B

Parameters:
min - ��`��?�?��l��\���_
max - ��`��?ő�l��\���_
See Also:
InvalidArgumentValueException

EnclosingBox2D

public EnclosingBox2D(double minX,
                      double minY,
                      double maxX,
                      double maxY)
��`��?�?�/?ő�l��\���_��?W�l��^���ăI�u�W�F�N�g��?\�z����?B

minX �� maxX ����傫��?�?� ���邢�� minY �� maxY ����傫��?�?��ɂ� InvalidArgumentValueException �̗�O��?�����?B

Parameters:
minX - ��`��?�?��l��\���_�� X ?W�l
minY - ��`��?�?��l��\���_�� Y ?W�l
maxX - ��`��?ő�l��\���_�� X ?W�l
maxY - ��`��?ő�l��\���_�� Y ?W�l
See Also:
InvalidArgumentValueException

EnclosingBox2D

public EnclosingBox2D(Point2D[] points)
�^����ꂽ�_�Q���߂�?�?��̋�`��\���I�u�W�F�N�g��?\�z����?B

?�?�������`��?A�^����ꂽ�_�Q�ɑ΂��ă}?[�W����܂܂Ȃ�?B

Parameters:
points - ��`��Ɏ�܂�ׂ��_�Q
Method Detail

min

public Point2D min()
���̋�`��?�����̓_ (?�?��l) ��\���_��Ԃ�?B

Returns:
?�?��l��\���_

max

public Point2D max()
���̋�`�̉E?��̓_ (?ő�l) ��\���_��Ԃ�?B

Returns:
?ő�l��\���_

toArray

public Point2D[] toArray()
���̋�`��?�?��l/?ő�l��ӂ��ޔz���Ԃ�?B

���ʂƂ��ē�����z��̗v�f?��� 2 ��?A ?�?��̗v�f��?�?��l?A��Ԗڂ̗v�f��?ő�l��܂�?B

Returns:
?�?��l/?ő�l��ӂ��ޔz��

hasIntersection

public boolean hasIntersection(EnclosingBox2D mate)
���̋�`���^����ꂽ���̋�`�ƌ��邩�ۂ���Ԃ�?B

������܂�?�?���?u����?v�Ƃ݂Ȃ�?B

���邩�ۂ��̔��f�ɂ�?A��?�?ݒ肳��Ă��鉉�Z?�?�̋����̋��e��?���?l������?B

Parameters:
mate - ���̋�`
Returns:
����Ȃ�� true?A�����łȂ���� false
See Also:
ConditionOfOperation