C# 클래스 Plot3D.Surface3DRenderer

파일 보기 프로젝트 열기: DisruptionTheory/Buckets 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Project() 공개 메소드

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

ReCalculateTransformationsCoeficients() 공개 메소드

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
리턴 void

RenderSurface() 공개 메소드

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

Surface3DRenderer() 공개 메소드

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.
리턴 System