Loading...
Searching...
No Matches
gpr::geometry::PrimitiveInternal Struct Reference

#include <gpr/auxiliary/InternalCoordinates.h>

Public Member Functions

int arity () const

Static Public Member Functions

static PrimitiveInternal bond (int a, int b)
static PrimitiveInternal angle (int a, int b, int c)
static PrimitiveInternal dihedral (int a, int b, int c, int d)
static PrimitiveInternal linearBend (int a, int b, int c, const Eigen::Vector3d &reference)

Public Attributes

PrimitiveKind kind = PrimitiveKind::Bond
std::array< int, 4 > atoms = {-1, -1, -1, -1}
Eigen::Vector3d reference = Eigen::Vector3d::Zero()
 Reference direction of a LinearBend; unused by the other kinds.

Detailed Description

Definition at line 63 of file InternalCoordinates.h.

Member Function Documentation

◆ angle()

PrimitiveInternal gpr::geometry::PrimitiveInternal::angle ( int a,
int b,
int c )
staticnodiscard

Definition at line 443 of file InternalCoordinates.cpp.

444{
445 PrimitiveInternal out;
447 out.atoms = {a, b, c, -1};
448 return out;
449}
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out

◆ arity()

int gpr::geometry::PrimitiveInternal::arity ( ) const
nodiscard

Definition at line 469 of file InternalCoordinates.cpp.

470{
471 switch (kind) {
473 return 2;
476 return 3;
478 return 4;
479 }
480 return 0;
481}

◆ bond()

PrimitiveInternal gpr::geometry::PrimitiveInternal::bond ( int a,
int b )
staticnodiscard

Definition at line 435 of file InternalCoordinates.cpp.

436{
437 PrimitiveInternal out;
439 out.atoms = {a, b, -1, -1};
440 return out;
441}

◆ dihedral()

PrimitiveInternal gpr::geometry::PrimitiveInternal::dihedral ( int a,
int b,
int c,
int d )
staticnodiscard

Definition at line 451 of file InternalCoordinates.cpp.

452{
453 PrimitiveInternal out;
455 out.atoms = {a, b, c, d};
456 return out;
457}

◆ linearBend()

PrimitiveInternal gpr::geometry::PrimitiveInternal::linearBend ( int a,
int b,
int c,
const Eigen::Vector3d & reference )
staticnodiscard

Definition at line 459 of file InternalCoordinates.cpp.

461{
462 PrimitiveInternal out;
464 out.atoms = {a, b, c, -1};
465 out.reference = reference;
466 return out;
467}
Eigen::Vector3d reference
Reference direction of a LinearBend; unused by the other kinds.

Member Data Documentation

◆ atoms

std::array<int, 4> gpr::geometry::PrimitiveInternal::atoms = {-1, -1, -1, -1}

Definition at line 65 of file InternalCoordinates.h.

65{-1, -1, -1, -1};

◆ kind

PrimitiveKind gpr::geometry::PrimitiveInternal::kind = PrimitiveKind::Bond

Definition at line 64 of file InternalCoordinates.h.

◆ reference

Eigen::Vector3d gpr::geometry::PrimitiveInternal::reference = Eigen::Vector3d::Zero()

Reference direction of a LinearBend; unused by the other kinds.

Definition at line 67 of file InternalCoordinates.h.


The documentation for this struct was generated from the following files: