FromVertex() public static method

Converts the vertex to a normal.
This does nothing more than copy the X, Y and Z coordinates of the vertex into a new Normal instance.
public static FromVertex ( Vertex vertex ) : Normal
vertex Vertex The to be converted into a .
return Normal
Ejemplo n.º 1
0
 /// <summary>Reads a single <see cref="Normal"/> from the <paramref name="reader"/>.</summary>
 /// <param name="reader">The reader which contains a <see cref="Normal"/> to be read at the current position</param>
 public static Normal Read(BinaryReader reader)
 {
     return(Normal.FromVertex(Vertex.Read(reader)));
 }
Ejemplo n.º 2
0
 /// <summary>Reads a single <see cref="Normal"/> from the <paramref name="reader"/>.</summary>
 /// <param name="reader">The reader which contains a <see cref="Normal"/> to be read at the current position</param>
 public static new Normal Read(StreamReader reader)
 {
     return(Normal.FromVertex(Vertex.Read(reader)));
 }