Segment computeSegment(Triangle& t, float z)
{
Vertex** vs = t.vertices;
// ...
}
Here, Vertex
is the name of a structure. Can you tell me what is the meaning of **
in Vertex** vs = t.vertices;
?
Segment computeSegment(Triangle& t, float z)
{
Vertex** vs = t.vertices;
// ...
}
Here, Vertex
is the name of a structure. Can you tell me what is the meaning of **
in Vertex** vs = t.vertices;
?
Vertex*
is pointer-to-Vertex, so Vertex**
is pointer-to-pointer-to-Vertex -- one more level of indirection.
For example:
int i = 0;
int * iPtr = &i; // iPtr -> i
int ** iPtrPtr = &iPtr; // iPtrPtr -> iPtr -> i