|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.geometry.GeometryElement
org.jscience.mathematics.geometry.AbstractParametricCurve
org.jscience.mathematics.geometry.ParametricCurve2D
org.jscience.mathematics.geometry.BoundedCurve2D
org.jscience.mathematics.geometry.Polyline2D
public class Polyline2D
�Q���� : �|�����C����\���N���X?B
�|�����C����?A?ߓ_�̗� points �� �����`�����ۂ���\���t���O closed �Œ�`�����?B closed �̒l�� true �ł���Ε����`���Ƃ���?Afalse �ł���ΊJ�����`���Ƃ��Ĉ�����?B �����`���̃|�����C����?A ?��?�?���?Ō��?ߓ_�싂�?�����̂Ƃ��Ĉ�����?B �|�����C���̃p���??[�^��`���?A ��?ڂ���?ߓ_�̊Ԃ̃p���??[�^��Ԃ̑傫����?�� 1 �Ƃ���?A ��?�S��ł� [0, N] �ƂȂ�?B ������ N ��?A �|�����C�����J�����`���ł���� (?ߓ_��?� - 1)?A �����`���ł���� (?ߓ_��?�) �ɂȂ�?B t ��p���??[�^�Ƃ���|�����C�� P(t) �̃p���?�g���b�N�\����?A�ȉ��̒ʂ�?B
P(t) = (1 - (t - s)) * points[s] + (t - s) * points[s + 1]
������ s �� t ��z���Ȃ�?ő��?�?�?B
| Constructor Summary | |
|---|---|
Polyline2D(BoundedCurve2D curve,
ToleranceForDistance tol)
�^����ꂽ�L��? |
|
Polyline2D(ParametricCurve2D curve,
ParameterSection pint,
ToleranceForDistance tol)
�^����ꂽ��? |
|
Polyline2D(Point2D[] points)
? |
|
Polyline2D(Point2D[] points,
boolean closed)
? |
|
| Methods inherited from class org.jscience.mathematics.geometry.BoundedCurve2D |
|---|
fillet, length, offsetByBoundedCurve, offsetByBsplineCurve, toPolyline |
| Methods inherited from class org.jscience.mathematics.geometry.ParametricCurve2D |
|---|
checkProjection, dimension, fillet, identicalParameter, is2D, nearestProjectFrom, nearestProjectWithDistanceFrom, pointToParameter, reverseTransformBy, transformBy, transformBy |
| Methods inherited from class org.jscience.mathematics.geometry.AbstractParametricCurve |
|---|
checkValidity, checkValidity, isClosed, isCurve, isFinite, isInfinite, isNonPeriodic, isOpen, isParametric, isPeriodic, isValid, parameterDomain |
| Methods inherited from class org.jscience.mathematics.geometry.GeometryElement |
|---|
getClassName, getToleranceForAngle, getToleranceForAngleAsObject, getToleranceForDistance, getToleranceForDistance2, getToleranceForDistanceAsObject, getToleranceForParameter, getToleranceForParameterAsObject, getToleranceForRealNumber, getToleranceForRealNumberAsObject, is1D, is3D, isPlacement, isPoint, isSurface, isTransformationOperator, isVector, makeIndent, output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Polyline2D(Point2D[] points,
boolean closed)
points - ?ߓ_�̔z��closed - ���Ă��邩�ۂ���\���t���OInvalidArgumentValueExceptionpublic Polyline2D(Point2D[] points)
points - ?ߓ_�̔z��InvalidArgumentValueException
public Polyline2D(BoundedCurve2D curve,
ToleranceForDistance tol)
curve - �L��?�tol - �����̋��e��?�BoundedCurve2D.toPolyline(ToleranceForDistance)
public Polyline2D(ParametricCurve2D curve,
ParameterSection pint,
ToleranceForDistance tol)
curve - ��?�pint - ��?�ߎ�����p���??[�^���tol - �����̋��e��?�ParametricCurve2D.toPolyline(ParameterSection,ToleranceForDistance)| Method Detail |
|---|
public Point2D[] points()
public Point2D pointAt(int i)
public boolean closed()
public int nPoints()
public int nSegments()
public double length(ParameterSection pint)
length in class AbstractParametricCurvepint - ��?�̒�����?�߂�p���??[�^���
ParameterOutOfRangepublic Point2D coordinates(double param)
coordinates in class ParametricCurve2Dparam - �p���??[�^�l
AbstractParametricCurve.checkValidity(double),
ParameterOutOfRangepublic Vector2D tangentVector(double param)
tangentVector in class ParametricCurve2Dparam - �p���??[�^�l
AbstractParametricCurve.checkValidity(double),
ParameterOutOfRangepublic CurveCurvature2D curvature(double param)
curvature in class ParametricCurve2Dparam - �p���??[�^�l
AbstractParametricCurve.checkValidity(double),
ParameterOutOfRangepublic CurveDerivative2D evaluation(double param)
evaluation in class ParametricCurve2Dparam - �p���??[�^�l
AbstractParametricCurve.checkValidity(double),
ParameterOutOfRangepublic PointOnCurve2D[] singular()
singular in class ParametricCurve2Dpublic PointOnCurve2D[] inflexion()
inflexion in class ParametricCurve2Dpublic PointOnCurve2D[] projectFrom(Point2D point)
projectFrom in class ParametricCurve2Dpoint - ���e���̓_
public Polyline2D toPolyline(ParameterSection pint,
ToleranceForDistance tol)
toPolyline in class ParametricCurve2Dpint - ��?�ߎ�����p���??[�^���tol - �����̋��e��?�
PointOnCurve2Dpublic BsplineCurve2D toBsplineCurve()
toBsplineCurve in class BoundedCurve2Dpublic BsplineCurve2D toBsplineCurve(ParameterSection pint)
toBsplineCurve in class ParametricCurve2Dpint - �L�? Bspline ��?��?�����p���??[�^���
public IntersectionPoint2D[] intersect(ParametricCurve2D mate)
intersect in class ParametricCurve2Dmate - ���̋�?�
public CurveCurveInterference2D[] interfere(BoundedCurve2D mate)
interfere in class BoundedCurve2Dmate - ���̋�?�
public IntersectionPoint2D[] selfIntersect()
public CurveCurveInterference2D[] selfInterfere()
public CompositeCurve2D offsetByCompositeCurve(ParameterSection pint,
double magni,
int side,
ToleranceForDistance tol)
pint - �I�t�Z�b�g����p���??[�^���magni - �I�t�Z�b�g��side - �I�t�Z�b�g�̌� (WhichSide.LEFT/RIGHT)tol - �����̋��e��?�
WhichSide
public BsplineCurve2D offsetByBsplineCurve(ParameterSection pint,
double magni,
int side,
ToleranceForDistance tol)
offsetByBsplineCurve in class ParametricCurve2Dpint - �I�t�Z�b�g����p���??[�^���magni - �I�t�Z�b�g��side - �I�t�Z�b�g�̌� (WhichSide.LEFT/RIGHT)tol - �����̋��e��?�
WhichSide
public BoundedCurve2D offsetByBoundedCurve(ParameterSection pint,
double magni,
int side,
ToleranceForDistance tol)
offsetByBoundedCurve in class ParametricCurve2Dpint - �I�t�Z�b�g����p���??[�^���magni - �I�t�Z�b�g��side - �I�t�Z�b�g�̌� (WhichSide.LEFT/RIGHT)tol - �����̋��e��?�
WhichSidepublic CommonTangent2D[] commonTangent(ParametricCurve2D mate)
commonTangent in class ParametricCurve2Dmate - ���̋�?�
java.lang.UnsupportedOperationException - ���܂̂Ƃ���?A������Ȃ��@�\�ł���public CommonNormal2D[] commonNormal(ParametricCurve2D mate)
commonNormal in class ParametricCurve2Dmate - ���̋�?�
java.lang.UnsupportedOperationException - ���܂̂Ƃ���?A������Ȃ��@�\�ł���public boolean isFreeform()
isFreeform in class GeometryElementpublic Point2D startPoint()
startPoint in class BoundedCurve2Dpublic Point2D endPoint()
endPoint in class BoundedCurve2Dpublic BoundedLine2D[] toBoundedLines(ParameterSection pint)
pint - ?��ɕϊ�����p���??[�^���
public BoundedLine2D[] toBoundedLines()
protected ParametricCurve2D doTransformBy(boolean reverseTransform,
CartesianTransformationOperator2D transformationOperator,
java.util.Hashtable transformedGeometries)
doTransformBy in class ParametricCurve2DreverseTransform - �t�ϊ�����̂ł���� true?A�����łȂ���� falsetransformationOperator - �I�ϊ����Z�qtransformedGeometries - ��ɓ��l�̕ϊ���{�����v�f��܂ރn�b�V���e?[�u��
protected boolean hasPolyline()
hasPolyline in class ParametricCurve2Dprotected boolean isComposedOfOnlyPolylines()
isComposedOfOnlyPolylines in class ParametricCurve2D
protected void output(java.io.PrintWriter writer,
int indent)
output in class GeometryElementwriter - PrintWriterindent - �C���f���g��?[��GeometryElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||