Class KPoint

Create a new KPoint instance.

A KPoint represents a point identified by an x-coordinate and the number of the k-line it is located at.

Constructor

class KPoint(x, k)
Arguments:
  • x
  • k

Methods

copy

KPoint#copy()

Return a new copy of this k-point.

equal

KPoint#equal(other)
Arguments:
  • other

Returns true if the given k-point has equal values

movedown

KPoint#movedown(d)
Arguments:
  • d

Move the point down by d units

moveleft

KPoint#moveleft(d)
Arguments:
  • d

Move the point left by d units

moveright

KPoint#moveright(d)
Arguments:
  • d

Move the point right by d units

moveup

KPoint#moveup(d)
Arguments:
  • d

Move the point up by d units

set

KPoint#set(x, k)
Arguments:
  • x
  • k

Set the values of a k-point.

translate

KPoint#translate(other)
Arguments:
  • other

Translate this k-point by adding the values of the given k-point.

Attributes

k

k

The k-line on which the k-point is located at.

x

x

The x-coordinate of the k-point.

Table Of Contents

Previous topic

Class LCS

Next topic

Class Limit