C# Class Plot3D.Surface3DRenderer

Show file Open project: DisruptionTheory/Buckets Class Usage Examples

Public Methods

Method 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 method

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.
return System.Drawing.PointF

ReCalculateTransformationsCoeficients() public method

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
return void

RenderSurface() public method

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

Surface3DRenderer() public method

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.
return System