BRIDGES
  • Articles
  • BRIDGES
Search Results for

    Show / Hide Table of Contents
    • Settings
    • LinearAlgebra
      • Vectors
        • DenseVector
        • SparseVector
        • Vector
      • Factorisation
        • SparseQR
      • Matrices
        • DenseMatrix
        • Matrix
        • SparseMatrix
        • Sparse
          • CompressedColumn
          • CompressedRow
        • Storage
          • DictionaryOfKeys
    • Algebra
      • Measure
        • IDotProduct<TSelf, TValue>
        • IMetric<TSelf>
        • INorm<TSelf>
      • Sets
        • IGroupAction<TSelf, TValue>
      • Fundamentals
        • IAddable<T>
    • Solvers
      • GuidedProjection
        • Energy
        • GuidedProjectionAlgorithm
        • LinearisedConstraint
        • QuadraticConstraint
        • VariableSet
        • EnergyTypes
          • SegmentOrthogonality
          • SegmentParallelity
        • Interfaces
          • IEnergyType
          • ILinearisedConstraintType
          • IQuadraticConstraintType
        • QuadraticConstraintTypes
          • CoherentLength
          • LowerBound
          • UpperBound
          • VectorLength
    • Arithmetic
      • Polynomials
        • Multivariate
          • Monomial
          • Polynomial
        • Univariate
          • Polynomial
          • Specials
            • Bernstein
            • BSpline
      • Numbers
        • Complex
        • Quaternion
        • Real
    • Geometry
      • Euclidean3D
        • Basis
        • BSplineCurve
        • BSplineSurface
        • Circle
        • Frame
        • Line
        • NurbsCurve
        • NurbsSurface
        • Plane
        • Point
        • Polyline
        • Ray
        • Segment
        • Sphere
        • Vector
      • Kernel
        • BSplineCurve<TPoint>
        • BSplineSurface<TPoint>
        • CurveParameterFormat
        • IGeometricallyEquatable<T>
      • Projective3D
        • Point
    • DataStructures
      • PolyhedralMeshes
        • IEdge<TPosition>
        • IFace<TPosition>
        • IMesh<TPosition>
        • IVertex<TPosition>
        • FaceVertexMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>
        • Abstract
          • Edge<TPosition, TVertex, TEdge, TFace>
          • Face<TPosition, TVertex, TEdge, TFace>
          • Mesh<TPosition, TVertex, TEdge, TFace>
          • Vertex<TPosition, TVertex, TEdge, TFace>
        • HalfedgeMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Halfedge<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>

    Class Bernstein

    Class defining a Bernstein polynomial.

    Inheritance
    Object
    Polynomial
    Bernstein
    Implements
    IGroupAction<Polynomial, Double>
    Inherited Members
    Polynomial.Degree
    Polynomial.Item[Int32]
    Polynomial.Zero
    Polynomial.One
    Polynomial.Derive(Polynomial, Int32)
    Polynomial.Add(Polynomial, Polynomial)
    Polynomial.Subtract(Polynomial, Polynomial)
    Polynomial.Opposite(Polynomial)
    Polynomial.Multiply(Polynomial, Polynomial)
    Polynomial.Multiply(Polynomial, Double)
    Polynomial.Multiply(Double, Polynomial)
    Polynomial.Divide(Polynomial, Double)
    Polynomial.Coefficient(Int32)
    Polynomial.EvaluateAt(Double)
    Polynomial.IGroupAction<Polynomial, Double>.Multiply(Double)
    Polynomial.IGroupAction<Polynomial, Double>.Divide(Double)
    Namespace: BRIDGES.Arithmetic.Polynomials.Univariate.Specials
    Assembly: BRIDGES.dll
    Syntax
    public class Bernstein : Polynomial, IGroupAction<Polynomial, double>

    Constructors

    | Improve this Doc View Source

    Bernstein(Int32, Int32)

    Initialises a new instance of Bernstein class by defining its index and degree.

    Declaration
    public Bernstein(int index, int degree)
    Parameters
    Type Name Description
    Int32 index

    Index of the Bernstein polynomial.

    Int32 degree

    Degree of the Bernstein polynomial.

    Properties

    | Improve this Doc View Source

    Index

    Gets the index of the current Bernstein.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    EvaluateAt(Double, Int32, Int32)

    Evaluates a Bernstein of a given index and degree, at a given value.

    Declaration
    public static double EvaluateAt(double val, int index, int degree)
    Parameters
    Type Name Description
    Double val

    Value to evaluate at.

    Int32 index

    Index of the Bernstein to evaluate.

    Int32 degree

    Degree of the Bernstein to evaluate.

    Returns
    Type Description
    Double

    The value of the Bernstein polynomial at the given value.

    Remarks

    The code is adapted from algorithm 1.2 described in the NURBS Book, by L. Piegl and W. Tiller.

    | Improve this Doc View Source

    EvaluateBasisAt(Double, Int32)

    Evaluates a Bernstein polynomial basis of a given degree, at a given value.

    Declaration
    public static double[] EvaluateBasisAt(double val, int degree)
    Parameters
    Type Name Description
    Double val

    Value to evaluate at.

    Int32 degree

    Degree of the Bernstein polynomial basis.

    Returns
    Type Description
    Double[]

    The values of the Bernstein polynomials at the given value.

    Remarks

    The code is adapted from algorithm 1.3 described in the NURBS Book, by L. Piegl and W. Tiller.

    | Improve this Doc View Source

    ToBSpline()

    Creates a BSpline polynomial from the current Bernstein polynomial.

    Declaration
    public BSpline ToBSpline()
    Returns
    Type Description
    BSpline

    The new BSpline polynomial.

    Implements

    IGroupAction<TSelf, TValue>
    • Improve this Doc
    • View Source
    In This Article
    Back to top By ENPC and the Build'In Platform