Abstract
Abstract
coordinateThe coordinate type this shape. This property is read only. An Error will be thrown when trying to assign to this property.
The focus point of this shape. This property is read only. An error will be thrown when trying to assign to this property. This property contains an object but should be treated with value semantics: changes to the shape will not be reflected in the focusPoint that was retrieved from this Polygon before the modification.
The spatial reference of this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Returns the type of the shape as a bitwise combination of ShapeType values. If the curve is quadratic, it returns ShapeType.BEZIER_CURVE | ShapeType.BEZIER_CURVE_QUADRATIC. If the curve is cubic, it returns ShapeType.BEZIER_CURVE | ShapeType.BEZIER_CURVE_CUBIC.
Determines whether a given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
true
when the given point is contained in this shape
Please use contains2DPoint instead.
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The x coordinate of the point for which containment must be checked
The y coordinate of the point for which containment must be checked
true
when the given point is contained in this shape
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked.
true
when the given point is contained in this shape
InvalidReferenceError when a point has another spatial reference
Abstract
copyIndicates whether this shape is equal to another.
the other shape this shape is compared with.
true
if both shapes are equal, false
otherwise.
Returns the control point at the specified index within the list of the control points.
The zero-based index of the control point.
ProgrammingError If the index is out of range of the control points array.
Computes and returns a point on the curve corresponding to the provided parameter value. The parameter should range from 0 to 1 inclusive, where:
the parameter value, within [0,1], to compute the point location for.
the computed point on the curve.
Moves the control point at the specified index to a new 2D location.
The zero-based index of the control points.
The new location to which the control point should be moved.
ProgrammingError If the index is out of range of the control points array.
Represents a Bézier curve. A Bézier curve is defined by ordered control points:
The API allows modifying the position of these points.
Concrete instances of Bézier curves should be created using the factory functions createQuadraticBezierCurve and createCubicBezierCurve.
Since
2024.1