Package apple.metal.enums
Class MTLCurveBasis
- java.lang.Object
-
- apple.metal.enums.MTLCurveBasis
-
public final class MTLCurveBasis extends java.lang.ObjectBasis function to use to interpolate curve control points API-Since: 17.0
-
-
Field Summary
Fields Modifier and Type Field Description static longBezierBezier basis API-Since: 17.0static longBSplineB-Spline basis.static longCatmullRomCatmull-Rom basis.static longLinearLinear basis.
-
-
-
Field Detail
-
BSpline
public static final long BSpline
B-Spline basis. Each curve segment must have 3 or 4 control points. Curve segments join with C^(N - 2) continuity, where N is the number of control points. The curve does not necessarily pass through the control points without additional control points at the beginning and end of the curve. Each curve segment can overlap N-1 control points. API-Since: 17.0- See Also:
- Constant Field Values
-
CatmullRom
public static final long CatmullRom
Catmull-Rom basis. Curves represented in this basis can also be easily converted to and from the Bézier basis. Each curve segment must have 4 control points. Each index in the control point index buffer points to the first of 4 consecutive control points in the control point buffer. The tangent at each control point is given by (P_(i+1) - P_(i-1)) / 2. Therefore, the curve does not pass through the first and last control point of each connected sequence of curve segments. Instead, the first and last control point are used to control the tangent vector at the beginning and end of the curve. Curve segments join with C^1 continuity and the curve passes through the control points. Each curve segment can overlap 3 control points. API-Since: 17.0- See Also:
- Constant Field Values
-
Linear
public static final long Linear
Linear basis. The curve is made of a sequence of connected line segments each with 2 control points. API-Since: 17.0- See Also:
- Constant Field Values
-
Bezier
public static final long Bezier
Bezier basis API-Since: 17.0- See Also:
- Constant Field Values
-
-