Constructor
new QuadRing(d)
- Source:
Constructor
Parameters:
Name | Type | Description |
---|---|---|
d |
number | the square of the adjoined root. For the moment it should be an integer |
Classes
Methods
element(a, b)
- Source:
Return the element a + b sqrt(d) in the quadratic ring.
a
and b
should be integers
Parameters:
Name | Type | Default | Description |
---|---|---|---|
a |
number |
0
|
|
b |
number |
0
|
matrix4() → {QuadRingMatrix4}
- Source:
Return a matrix on this quadratic rign
Returns:
- Type
- QuadRingMatrix4
shader(shaderBuilder)
- Source:
build the corresponding part of the shader
Parameters:
Name | Type | Description |
---|---|---|
shaderBuilder |
ShaderBuilder |