C# Class QuantumConcepts.Formats.StereoLithography.Normal

A simple XYZ representation of a normal (Vertex).
Inheritance: Vertex
Afficher le fichier Open project: QuantumConcepts/STLdotNET Class Usage Examples

Méthodes publiques

Méthode Description
FromVertex ( Vertex vertex ) : Normal

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.

Invert ( ) : void

Flips the normal so it faces the opposite direction.

Normal ( ) : System

Creates a new, empty Normal.

Normal ( float x, float y, float z ) : System

Creates a new Normal using the provided coordinates.

Read ( BinaryReader reader ) : Normal

Reads a single Normal from the reader.

Read ( StreamReader reader ) : Normal

Reads a single Normal from the reader.

ToString ( ) : string

Returns the string representation of this Normal.

Method Details

FromVertex() public static méthode

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 .
Résultat Normal

Invert() public méthode

Flips the normal so it faces the opposite direction.
public Invert ( ) : void
Résultat void

Normal() public méthode

Creates a new, empty Normal.
public Normal ( ) : System
Résultat System

Normal() public méthode

Creates a new Normal using the provided coordinates.
public Normal ( float x, float y, float z ) : System
x float
y float
z float
Résultat System

Read() public static méthode

Reads a single Normal from the reader.
public static Read ( BinaryReader reader ) : Normal
reader System.IO.BinaryReader The reader which contains a to be read at the current position
Résultat Normal

Read() public static méthode

Reads a single Normal from the reader.
public static Read ( StreamReader reader ) : Normal
reader System.IO.StreamReader The reader which contains a to be read at the current position
Résultat Normal

ToString() public méthode

Returns the string representation of this Normal.
public ToString ( ) : string
Résultat string