C# 클래스 RenderingLibrary.Math.Geometry.LinePrimitive

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

공개 프로퍼티들

프로퍼티 타입 설명
Color Color
Depth float
Position Vector2

공개 메소드들

메소드 설명
Add ( Vector2 vector ) : void

Adds a vector to the primive live object.

Add ( float x, float y ) : void

Adds a vector to the primive live object.

ClearVectors ( ) : void

Clears all vectors from the primitive line object.

CreateCircle ( float radius, int sides ) : void

Creates a circle starting from 0, 0.

Insert ( int index, Vector2 vector ) : void

Insers a vector into the primitive line object.

LinePrimitive ( Microsoft.Xna.Framework.Graphics.Texture2D singlePixelTexture ) : System

Creates a new primitive line object.

Remove ( Vector2 vector ) : void

Removes a vector from the primitive line object.

RemoveAt ( int index ) : void

Removes a vector from the primitive line object.

Render ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void

Renders the primtive line object.

Render ( SpriteRenderer spriteRenderer, SystemManagers managers, Microsoft.Xna.Framework.Graphics.Texture2D textureToUse, float repetitionsPerLength ) : void
Replace ( int index, Vector2 whatToReplaceWith ) : void

Replaces a vector at the given index with the argument Vector2.

Shift ( float x, float y ) : void

메소드 상세

Add() 공개 메소드

Adds a vector to the primive live object.
public Add ( Vector2 vector ) : void
vector Vector2 The vector to add.
리턴 void

Add() 공개 메소드

Adds a vector to the primive live object.
public Add ( float x, float y ) : void
x float The X position of the new point.
y float The Y position of the new point.
리턴 void

ClearVectors() 공개 메소드

Clears all vectors from the primitive line object.
public ClearVectors ( ) : void
리턴 void

CreateCircle() 공개 메소드

Creates a circle starting from 0, 0.
public CreateCircle ( float radius, int sides ) : void
radius float The radius (half the width) of the circle.
sides int The number of sides on the circle (the more the detailed).
리턴 void

Insert() 공개 메소드

Insers a vector into the primitive line object.
public Insert ( int index, Vector2 vector ) : void
index int The index to insert it at.
vector Vector2 The vector to insert.
리턴 void

LinePrimitive() 공개 메소드

Creates a new primitive line object.
public LinePrimitive ( Microsoft.Xna.Framework.Graphics.Texture2D singlePixelTexture ) : System
singlePixelTexture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

Remove() 공개 메소드

Removes a vector from the primitive line object.
public Remove ( Vector2 vector ) : void
vector Vector2 The vector to remove.
리턴 void

RemoveAt() 공개 메소드

Removes a vector from the primitive line object.
public RemoveAt ( int index ) : void
index int The index of the vector to remove.
리턴 void

Render() 공개 메소드

Renders the primtive line object.
public Render ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void
spriteRenderer RenderingLibrary.Graphics.SpriteRenderer The sprite renderer to use to render the primitive line object.
managers SystemManagers
리턴 void

Render() 공개 메소드

public Render ( SpriteRenderer spriteRenderer, SystemManagers managers, Microsoft.Xna.Framework.Graphics.Texture2D textureToUse, float repetitionsPerLength ) : void
spriteRenderer RenderingLibrary.Graphics.SpriteRenderer
managers SystemManagers
textureToUse Microsoft.Xna.Framework.Graphics.Texture2D
repetitionsPerLength float
리턴 void

Replace() 공개 메소드

Replaces a vector at the given index with the argument Vector2.
public Replace ( int index, Vector2 whatToReplaceWith ) : void
index int What index to replace.
whatToReplaceWith Vector2 The new vector that will be placed at the given index
리턴 void

Shift() 공개 메소드

public Shift ( float x, float y ) : void
x float
y float
리턴 void

프로퍼티 상세

Color 공개적으로 프로퍼티

Gets/sets the color of the primitive line object.
public Color Color
리턴 Color

Depth 공개적으로 프로퍼티

Gets/sets the render depth of the primitive line object (0 = front, 1 = back)
public float Depth
리턴 float

Position 공개적으로 프로퍼티

Gets/sets the position of the primitive line object.
public Vector2 Position
리턴 Vector2