A quadratic parametric curve segment specified with double coordinates.
A quadratic parametric curve segment specified with double coordinates.
(->double)
(->double x-1 y-1 ctrlx ctrly x-2 y-2)
Constructor.
Constructs and initializes a QuadCurve2D from the specified double coordinates.
x-1 - the X coordinate of the start point - double
y-1 - the Y coordinate of the start point - double
ctrlx - the X coordinate of the control point - double
ctrly - the Y coordinate of the control point - double
x-2 - the X coordinate of the end point - double
y-2 - the Y coordinate of the end point - double
Constructor. Constructs and initializes a QuadCurve2D from the specified double coordinates. x-1 - the X coordinate of the start point - `double` y-1 - the Y coordinate of the start point - `double` ctrlx - the X coordinate of the control point - `double` ctrly - the Y coordinate of the control point - `double` x-2 - the X coordinate of the end point - `double` y-2 - the Y coordinate of the end point - `double`
(ctrlx this)
Instance Field.
The X coordinate of the control point of the quadratic curve segment.
type: double
Instance Field. The X coordinate of the control point of the quadratic curve segment. type: double
(ctrly this)
Instance Field.
The Y coordinate of the control point of the quadratic curve segment.
type: double
Instance Field. The Y coordinate of the control point of the quadratic curve segment. type: double
(get-bounds-2-d this)
Returns a high precision and more accurate bounding box of the Shape than the getBounds method. Note that there is no guarantee that the returned Rectangle2D is the smallest bounding box that encloses the Shape, only that the Shape lies entirely within the indicated Rectangle2D. The bounding box returned by this method is usually tighter than that returned by the getBounds method and never fails due to overflow problems since the return value can be an instance of the Rectangle2D that uses double precision values to store the dimensions.
Note that the definition of insideness can lead to situations where points on the defining outline of the shape may not be considered contained in the returned bounds object, but only in cases where those points are also not considered contained in the original shape.
If a point is inside the shape according to the contains(point) method, then it must be inside the returned Rectangle2D bounds object according to the contains(point) method of the bounds. Specifically:
shape.contains(p) requires bounds.contains(p)
If a point is not inside the shape, then it might still be contained in the bounds object:
bounds.contains(p) does not imply shape.contains(p)
returns: an instance of Rectangle2D that is a
high-precision bounding box of the Shape. - java.awt.geom.Rectangle2D
Returns a high precision and more accurate bounding box of the Shape than the getBounds method. Note that there is no guarantee that the returned Rectangle2D is the smallest bounding box that encloses the Shape, only that the Shape lies entirely within the indicated Rectangle2D. The bounding box returned by this method is usually tighter than that returned by the getBounds method and never fails due to overflow problems since the return value can be an instance of the Rectangle2D that uses double precision values to store the dimensions. Note that the definition of insideness can lead to situations where points on the defining outline of the shape may not be considered contained in the returned bounds object, but only in cases where those points are also not considered contained in the original shape. If a point is inside the shape according to the contains(point) method, then it must be inside the returned Rectangle2D bounds object according to the contains(point) method of the bounds. Specifically: shape.contains(p) requires bounds.contains(p) If a point is not inside the shape, then it might still be contained in the bounds object: bounds.contains(p) does not imply shape.contains(p) returns: an instance of Rectangle2D that is a high-precision bounding box of the Shape. - `java.awt.geom.Rectangle2D`
(get-ctrl-pt this)
Returns the control point.
returns: a Point2D that is the control point of this
Point2D. - java.awt.geom.Point2D
Returns the control point. returns: a Point2D that is the control point of this Point2D. - `java.awt.geom.Point2D`
(get-ctrl-x this)
Returns the X coordinate of the control point in double precision.
returns: X coordinate the control point - double
Returns the X coordinate of the control point in double precision. returns: X coordinate the control point - `double`
(get-ctrl-y this)
Returns the Y coordinate of the control point in double precision.
returns: the Y coordinate of the control point. - double
Returns the Y coordinate of the control point in double precision. returns: the Y coordinate of the control point. - `double`
(get-p-1 this)
Returns the start point.
returns: a Point2D that is the start point of this
QuadCurve2D. - java.awt.geom.Point2D
Returns the start point. returns: a Point2D that is the start point of this QuadCurve2D. - `java.awt.geom.Point2D`
(get-p-2 this)
Returns the end point.
returns: a Point object that is the end point
of this Point2D. - java.awt.geom.Point2D
Returns the end point. returns: a Point object that is the end point of this Point2D. - `java.awt.geom.Point2D`
(get-x-1 this)
Returns the X coordinate of the start point in double in precision.
returns: the X coordinate of the start point. - double
Returns the X coordinate of the start point in double in precision. returns: the X coordinate of the start point. - `double`
(get-x-2 this)
Returns the X coordinate of the end point in double precision.
returns: the x coordinate of the end point. - double
Returns the X coordinate of the end point in double precision. returns: the x coordinate of the end point. - `double`
(get-y-1 this)
Returns the Y coordinate of the start point in double precision.
returns: the Y coordinate of the start point. - double
Returns the Y coordinate of the start point in double precision. returns: the Y coordinate of the start point. - `double`
(get-y-2 this)
Returns the Y coordinate of the end point in double precision.
returns: the Y coordinate of the end point. - double
Returns the Y coordinate of the end point in double precision. returns: the Y coordinate of the end point. - `double`
(set-curve this x-1 y-1 ctrlx ctrly x-2 y-2)
Sets the location of the end points and control point of this curve to the specified double coordinates.
x-1 - the X coordinate of the start point - double
y-1 - the Y coordinate of the start point - double
ctrlx - the X coordinate of the control point - double
ctrly - the Y coordinate of the control point - double
x-2 - the X coordinate of the end point - double
y-2 - the Y coordinate of the end point - double
Sets the location of the end points and control point of this curve to the specified double coordinates. x-1 - the X coordinate of the start point - `double` y-1 - the Y coordinate of the start point - `double` ctrlx - the X coordinate of the control point - `double` ctrly - the Y coordinate of the control point - `double` x-2 - the X coordinate of the end point - `double` y-2 - the Y coordinate of the end point - `double`
(x-1 this)
Instance Field.
The X coordinate of the start point of the quadratic curve segment.
type: double
Instance Field. The X coordinate of the start point of the quadratic curve segment. type: double
(x-2 this)
Instance Field.
The X coordinate of the end point of the quadratic curve segment.
type: double
Instance Field. The X coordinate of the end point of the quadratic curve segment. type: double
(y-1 this)
Instance Field.
The Y coordinate of the start point of the quadratic curve segment.
type: double
Instance Field. The Y coordinate of the start point of the quadratic curve segment. type: double
(y-2 this)
Instance Field.
The Y coordinate of the end point of the quadratic curve segment.
type: double
Instance Field. The Y coordinate of the end point of the quadratic curve segment. type: double
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close