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)
-
Methods
copy
-
KPoint#copy()
Return a new copy of this k-point.
equal
-
KPoint#equal(other)
-
Returns true if the given k-point has equal values
movedown
-
KPoint#movedown(d)
-
Move the point down by d units
moveleft
-
KPoint#moveleft(d)
-
Move the point left by d units
moveright
-
KPoint#moveright(d)
-
Move the point right by d units
moveup
-
KPoint#moveup(d)
-
Move the point up by d units
set
-
KPoint#set(x, k)
-
Set the values of a k-point.
translate
-
KPoint#translate(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.