ivutils
Loading...
Searching...
No Matches
3 Dimensial plane (Plane_3)
  • Plane_3::init(Vector_3 n, valtype d) - constructor, takes two arguments: the vector of the normal to the field and the number d (polo is set by the level \(\vec{n}\vec{x} + d = 0\))
  • Plane_3::init(Vector_3 n, Vector_3 x) is a configurator that takes two arguments: the normal vector to the plane and the radius vector of a point on the plane
  • Plane_3::set_coef(Vector_3 n, valtype d) - sets the vector n and the setting d.
  • Plane_3::set_pos(Vector_3 x) - Changes the position by setting the position of the point lying on it, without changing the norm vector.

C++ example:

    Plane_3 pl(Vector_3(0,0,1), 0);
    Plane_3 pl(Vector_3(0,0,1), Vector_3(0,0,0));

Python example:

    from emtl import Plane_3, Vector_3

    pl = Plane_3(Vector_3(0,0,1), 0);
    pl = Plane_3(Vector_3(0,0,1), Vector_3(0,0,0));