Struct dzahui::solvers::fem::basis::two_variables::polynomials_2d::FirstDegreePolynomial2D
source · pub struct FirstDegreePolynomial2D {
pub(crate) x_coefficient: f64,
pub(crate) y_coefficient: f64,
pub(crate) independent_term: f64,
}
Expand description
General Information
A simple, first degree polynomial in two variables.
Fields
x_coefficient
- constant that multiplies x variable.y_coefficient
- constant that multiplies y variable.independent_term
- constant that adds to variable.
Fields§
§x_coefficient: f64
§y_coefficient: f64
§independent_term: f64
Implementations§
source§impl FirstDegreePolynomial2D
impl FirstDegreePolynomial2D
sourcepub fn new(
x_coefficient: f64,
y_coefficient: f64,
independent_term: f64
) -> FirstDegreePolynomial2D
pub fn new(
x_coefficient: f64,
y_coefficient: f64,
independent_term: f64
) -> FirstDegreePolynomial2D
Normal constructor.
sourcepub fn zero() -> FirstDegreePolynomial2D
pub fn zero() -> FirstDegreePolynomial2D
Zero function factory.
sourcepub fn constant(independent_term: f64) -> FirstDegreePolynomial2D
pub fn constant(independent_term: f64) -> FirstDegreePolynomial2D
Constant function factory.
sourcepub fn translate(self, w: f64, z: f64) -> FirstDegreePolynomial2D
pub fn translate(self, w: f64, z: f64) -> FirstDegreePolynomial2D
Translate a function by a given point
sourcepub fn psi_1() -> FirstDegreePolynomial2D
pub fn psi_1() -> FirstDegreePolynomial2D
One of three basis functions on unit triangle {(0,0),(1,0),(0,1)}
sourcepub fn psi_2() -> FirstDegreePolynomial2D
pub fn psi_2() -> FirstDegreePolynomial2D
One of three basis functions on unit triangle {(0,0),(1,0),(0,1)}
sourcepub fn psi_3() -> FirstDegreePolynomial2D
pub fn psi_3() -> FirstDegreePolynomial2D
One of three basis functions on unit triangle {(0,0),(1,0),(0,1)}