org.jscience.mathematics.geometry
Class Point1D

java.lang.Object
  extended by org.jscience.mathematics.geometry.GeometryElement
      extended by org.jscience.mathematics.geometry.AbstractPoint
          extended by org.jscience.mathematics.geometry.Point1D
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CartesianPoint1D, HomogeneousPoint1D, PointOnGeometry1D

public abstract class Point1D
extends AbstractPoint

�P�����̓_��\����?ۃN���X?B

See Also:
Vector1D, Serialized Form

Field Summary
static Point1D origin
          �P�����̌��_ (0)?
 
Constructor Summary
protected Point1D()
          �I�u�W�F�N�g��?
 
Method Summary
 Point1D add(Vector1D vector)
          ���̓_�ɗ^����ꂽ�x�N�g���𑫂����_��Ԃ�?
 int dimension()
          ������Ԃ�?
 Point1D divide(double scale)
          ���̓_��^����ꂽ�X�P?
 boolean identical(Point1D mate)
          �Q�_�̓���?
 boolean is1D()
          �P�������ۂ���Ԃ�

?

 Point1D linearInterpolate(Point1D mate, double weightForThis)
          ���̓_�Ɨ^����ꂽ�_��?
 Point1D midPoint(Point1D mate)
          ���̓_�Ɨ^����ꂽ�_�̒��_��Ԃ�?
 Point1D multiply(double scale)
          ���̓_�ɗ^����ꂽ�X�P?
static CartesianPoint1D of(double x)
          CartesianPoint1D �̃C���X�^���X��?
 Point1D subtract(Vector1D vector)
          ���̓_����^����ꂽ�x�N�g����򢂽�_��Ԃ�?
 Vector1D toVector1D()
          ���̓_��P�����̃x�N�g�� (Vector1D) �ɕϊ�����?
abstract  double x()
          �_�� X ?
 
Methods inherited from class org.jscience.mathematics.geometry.AbstractPoint
isPoint
 
Methods inherited from class org.jscience.mathematics.geometry.GeometryElement
getClassName, getToleranceForAngle, getToleranceForAngleAsObject, getToleranceForDistance, getToleranceForDistance2, getToleranceForDistanceAsObject, getToleranceForParameter, getToleranceForParameterAsObject, getToleranceForRealNumber, getToleranceForRealNumberAsObject, is2D, is3D, isCurve, isFreeform, isParametric, isPlacement, isSurface, isTransformationOperator, isVector, makeIndent, output, 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 Point1D origin
�P�����̌��_ (0)?B

Constructor Detail

Point1D

protected Point1D()
�I�u�W�F�N�g��?\�z����?B

Method Detail

dimension

public int dimension()
������Ԃ�?B

?�� 1 ��Ԃ�?B

Specified by:
dimension in class GeometryElement
Returns:
�P�����Ȃ̂�?A?�� 1

is1D

public boolean is1D()
�P�������ۂ���Ԃ�

?�� true ��Ԃ�?B

Overrides:
is1D in class GeometryElement
Returns:
�P�����Ȃ̂�?A?�� true

x

public abstract double x()
�_�� X ?W�l��Ԃ���?ۃ?�\�b�h?B

Returns:
�_�� X ?W�l

add

public Point1D add(Vector1D vector)
���̓_�ɗ^����ꂽ�x�N�g���𑫂����_��Ԃ�?B

Parameters:
vector - �_�ɑ����x�N�g��
Returns:
�^����ꂽ�x�N�g���𑫂����_ (this + vector)

subtract

public Point1D subtract(Vector1D vector)
���̓_����^����ꂽ�x�N�g����򢂽�_��Ԃ�?B

Parameters:
vector - �_�����x�N�g��
Returns:
�^����ꂽ�x�N�g����򢂽�_ (this - vector)

multiply

public Point1D multiply(double scale)
���̓_�ɗ^����ꂽ�X�P?[����?悶���_��Ԃ�?B

Parameters:
scale - �X�P?[��
Returns:
(this * scale)

divide

public Point1D divide(double scale)
���̓_��^����ꂽ�X�P?[���Ŋ��B��_��Ԃ�?B

Parameters:
scale - �X�P?[��
Returns:
(this / scale)

linearInterpolate

public Point1D linearInterpolate(Point1D mate,
                                 double weightForThis)
���̓_�Ɨ^����ꂽ�_��?�^��Ԃ������ʂ�Ԃ�?B

Parameters:
mate - ?�`��Ԃ̑���ƂȂ�_
weightForThis - ��?g�ɑ΂���?d�� (����ɑ΂���?d�݂� 1 - weightForThis)
Returns:
?�`��Ԃ������ʂ̓_ (weightForThis * this + (1 - weightForThis) * mate)

midPoint

public Point1D midPoint(Point1D mate)
���̓_�Ɨ^����ꂽ�_�̒��_��Ԃ�?B

Parameters:
mate - ���_��?�߂鑊��ƂȂ�_
Returns:
���_ (0.5 * this + 0.5 * mate)

identical

public boolean identical(Point1D mate)
�Q�_�̓���?��𔻒肷��?B

Parameters:
mate - ����̑�?ۂƂȂ�_
Returns:
this �� mate ��?u�����̋��e��?�?v�ȓ�� ����̓_�ł���Ƃ݂Ȃ���� true?A����Ȃ��� false
See Also:
ConditionOfOperation

toVector1D

public Vector1D toVector1D()
���̓_��P�����̃x�N�g�� (Vector1D) �ɕϊ�����?B

Returns:
���_����̃x�N�g���Ƃ݂Ȃ����x�N�g��

of

public static CartesianPoint1D of(double x)
CartesianPoint1D �̃C���X�^���X��?�?�����?B

Parameters:
x - X ?���
Returns:
CartesianPoint1D �̃C���X�^���X