C# Class Plot3D.Surface3DRenderer

Afficher le fichier Open project: DisruptionTheory/Buckets Class Usage Examples

Méthodes publiques

Méthode Description
Project ( double x, double y, double z ) : PointF

Performs projection. Calculates screen coordinates for 3D point.

ReCalculateTransformationsCoeficients ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : void
RenderSurface ( Graphics graphics, long matrix, int adjustmentValue, bool newRender = false ) : void
Surface3DRenderer ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : System

Initializes a new instance of the Surface3DRenderer class. Calculates transformations coeficients.

Method Details

Project() public méthode

Performs projection. Calculates screen coordinates for 3D point.
public Project ( double x, double y, double z ) : PointF
x double Point's x coordinate.
y double Point's y coordinate.
z double Point's z coordinate.
Résultat System.Drawing.PointF

ReCalculateTransformationsCoeficients() public méthode

public ReCalculateTransformationsCoeficients ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : void
obsX double
obsY double
obsZ double
xs0 int
ys0 int
screenWidth int
screenHeight int
screenDistance double
screenWidthPhys double
screenHeightPhys double
Résultat void

RenderSurface() public méthode

public RenderSurface ( Graphics graphics, long matrix, int adjustmentValue, bool newRender = false ) : void
graphics System.Drawing.Graphics
matrix long
adjustmentValue int
newRender bool
Résultat void

Surface3DRenderer() public méthode

Initializes a new instance of the Surface3DRenderer class. Calculates transformations coeficients.
public Surface3DRenderer ( double obsX, double obsY, double obsZ, int xs0, int ys0, int screenWidth, int screenHeight, double screenDistance, double screenWidthPhys, double screenHeightPhys ) : System
obsX double Observator's X position
obsY double Observator's Y position
obsZ double Observator's Z position
xs0 int X coordinate of screen
ys0 int Y coordinate of screen
screenWidth int Drawing area width in pixels.
screenHeight int Drawing area height in pixels.
screenDistance double The screen distance.
screenWidthPhys double Width of the screen in meters.
screenHeightPhys double Height of the screen in meters.
Résultat System