## org.jscience.mathematics.geometry Class Vector1D

```java.lang.Object
org.jscience.mathematics.geometry.GeometryElement
org.jscience.mathematics.geometry.AbstractVector
org.jscience.mathematics.geometry.Vector1D
```
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HomogeneousVector1D, LiteralVector1D

`public abstract class Vector1Dextends AbstractVector`

�P�����̃x�N�g����\����?ۃN���X?B

See Also:
`Point1D`, Serialized Form

Field Summary
`static Vector1D` `nagativeXUnitVector`
�P�����̃O�??
`static Vector1D` `xUnitVector`
�P�����̃O�??
`static Vector1D` `zeroVector`
�P�����̃[�?

Constructor Summary
`protected ` `Vector1D()`
�I�u�W�F�N�g��?
`protected ` `Vector1D(boolean confirmedAsUnitized)`
�I�u�W�F�N�g��?

Method Summary
` Vector1D` `add(Vector1D mate)`
�x�N�g�����m�̘a��Ԃ�?
` int` `dimension()`
������Ԃ�?
` Vector1D` `divide(double scale)`
�^����ꂽ�X�P?
` double` `dotProduct(Vector1D mate)`
��?
` boolean` `identical(Vector1D mate)`
�Q�x�N�g���̓���?
` boolean` `is1D()`
�P�������ۂ���Ԃ�?
` double` `length()`
�x�N�g���̑傫����Ԃ�?
` double` `magnitude()`
�x�N�g���̑傫����Ԃ�?
` Vector1D` `multiply(double scale)`
�^����ꂽ�X�P?
` double` `norm()`
�x�N�g���̃m������Ԃ�?
`static LiteralVector1D` `of(double x)`
LiteralVector1D �̃C���X�^���X��?
` Vector1D` `reverse()`
�e?
` Vector1D` `subtract(Vector1D mate)`
�x�N�g�����m��?
` Point1D` `toPoint1D()`
�P�����̓_ (Point1D) �ɕϊ�����?
` Vector1D` `unitized()`
�P�ʉ������x�N�g����Ԃ�?
`abstract  double` `x()`
�x�N�g���� X ?
`static Vector1D` `xUnitVector()`
�P�����̃O�??
`static Vector1D` `zeroVector()`
�P�����̃[�?

Methods inherited from class org.jscience.mathematics.geometry.AbstractVector
`isVector`

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, isPoint, isSurface, isTransformationOperator, makeIndent, output, output`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### zeroVector

`public static final Vector1D zeroVector`
�P�����̃[�?�x�N�g��?B

### xUnitVector

`public static final Vector1D xUnitVector`
�P�����̃O�??[�o����?W�n�� X �����̒P�ʃx�N�g��?B

### nagativeXUnitVector

`public static final Vector1D nagativeXUnitVector`
�P�����̃O�??[�o����?W�n�� -X �����̒P�ʃx�N�g��?B

Constructor Detail

### Vector1D

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

?�?����悤�Ƃ���x�N�g���� �P�ʃx�N�g���ł��邩�ǂ���������Ȃ�?�?�?A�µ���� �P�ʃx�N�g���łȂ����Ƃ���?؂���Ă���?�?��ɂ�?A ���̃R���X�g���N�^��g�p����?B

### Vector1D

`protected Vector1D(boolean confirmedAsUnitized)`
�I�u�W�F�N�g��?\�z����?B

?�?����悤�Ƃ���x�N�g���� �P�ʃx�N�g���ł��邩�ǂ���������?�?��ɂ�?A ���̃R���X�g���N�^��g�p����?B

Parameters:
`confirmedAsUnitized` - ?�?����悤�Ƃ���x�N�g���� �P�ʃx�N�g���ł���Ȃ�� `true`?A ����Ȃ��� `false`
Method Detail

### zeroVector

`public static Vector1D zeroVector()`
�P�����̃[�?�x�N�g����Ԃ�?B

Returns:
�P�����̃[�?�x�N�g��

### xUnitVector

`public static Vector1D xUnitVector()`
�P�����̃O�??[�o����?W�n�� X �����̒P�ʃx�N�g����Ԃ�?B

Returns:
�P�����̃O�??[�o����?W�n�� X �����̒P�ʃx�N�g��

### dimension

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

?�� 1 ��Ԃ�?B

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

### is1D

`public boolean is1D()`
�P�������ۂ���Ԃ�?B

?�� true ��Ԃ�?B

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

### x

`public abstract double x()`
�x�N�g���� X ?�����Ԃ���?ۃ?�\�b�h?B

Returns:
�x�N�g���� X ?���

### unitized

`public Vector1D unitized()`
�P�ʉ������x�N�g����Ԃ�?B

Returns:
�P�ʉ������x�N�g��

### reverse

`public Vector1D reverse()`
�e?����̕�?��𔽓]�������x�N�g����Ԃ�?B

Returns:
this �𔽓]�����x�N�g��

### dotProduct

`public double dotProduct(Vector1D mate)`
��?ς�Ԃ�?B

Parameters:
`mate` - ��?ς��鑊��̃x�N�g��
Returns:
��?�

### add

`public Vector1D add(Vector1D mate)`
�x�N�g�����m�̘a��Ԃ�?B

Parameters:
`mate` - �a���鑊��̃x�N�g��
Returns:
�x�N�g���̘a (this + mate)

### subtract

`public Vector1D subtract(Vector1D mate)`
�x�N�g�����m��?���Ԃ�?B

Parameters:
`mate` - ?����鑊��̃x�N�g��
Returns:
�x�N�g����?� (this - mate)

### multiply

`public Vector1D multiply(double scale)`
�^����ꂽ�X�P?[����?悶���x�N�g����Ԃ�?B

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

### divide

`public Vector1D divide(double scale)`
�^����ꂽ�X�P?[���Ŋ��B��x�N�g����Ԃ�?B

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

### identical

`public boolean identical(Vector1D mate)`
�Q�x�N�g���̓���?��𔻒肷��?B

Parameters:
`mate` - ����̑�?ۂƂȂ�x�N�g��
Returns:
this �� mate ��?u�����̋��e��?�?v�ȓ�� ����̃x�N�g���ł���Ƃ݂Ȃ���� true?A����Ȃ��� false
See Also:
`ConditionOfOperation`

### length

`public double length()`
�x�N�g���̑傫����Ԃ�?B

Overrides:
`length` in class `AbstractVector`
Returns:
�x�N�g���̑傫�� abs(x)

### magnitude

`public double magnitude()`
�x�N�g���̑傫����Ԃ�?B

Overrides:
`magnitude` in class `AbstractVector`
Returns:
�x�N�g���̑傫�� abs(x)

### norm

`public double norm()`
�x�N�g���̃m������Ԃ�?B

Specified by:
`norm` in class `AbstractVector`
Returns:
�x�N�g���̃m���� (x * x)

### toPoint1D

`public Point1D toPoint1D()`
�P�����̓_ (Point1D) �ɕϊ�����?B

Returns:
���_����̈ʒu�x�N�g���Ƃ݂Ȃ����_

### of

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

Parameters:
`x` - X ?���
Returns:
LiteralVector1D �̃C���X�^���X