C# 클래스 LibNoise.Unity.Noise2D

Provides a two-dimensional noise map.
상속: IDisposable
파일 보기 프로젝트 열기: Keshire/Unity-polygon-map-generation 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AngleMax double
AngleMin double
Bottom double
East double
Left double
North double
Right double
South double
Top double
West double

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the noise map.

Clear ( float value ) : void

Clears the noise map.

Dispose ( ) : void

Immediately releases the unmanaged resources used by this object.

GenerateCylindrical ( double angleMin, double angleMax, double heightMin, double heightMax ) : void

Generates a cylindrical projection of the noise map.

GeneratePlanar ( double left, double right, double top, double bottom ) : void

Generates a planar projection of the noise map.

GeneratePlanar ( double left, double right, double top, double bottom, bool isSeamless ) : void

Generates a non-seamless planar projection of the noise map.

GenerateSpherical ( double south, double north, double west, double east ) : void

Generates a spherical projection of the noise map.

GetData ( bool isCropped = true, int xCrop, int yCrop, bool isNormalized = false ) : ].float[

Gets noise map data.

GetNormalMap ( float intensity ) : Texture2D

Creates a normal map for the current content of the noise map.

GetNormalizedData ( bool isCropped = true, int xCrop, int yCrop ) : ].float[

Gets normalized noise map data with all values in the set of {0..1}.

GetTexture ( ) : Texture2D

Creates a grayscale texture map for the current content of the noise map.

GetTexture ( Gradient gradient ) : Texture2D

Creates a texture map for the current content of the noise map.

Noise2D ( int size ) : System

Initializes a new instance of Noise2D.

Noise2D ( int size, ModuleBase generator ) : System

Initializes a new instance of Noise2D.

Noise2D ( int width, int height ) : System

Initializes a new instance of Noise2D.

Noise2D ( int width, int height, ModuleBase generator ) : System

Initializes a new instance of Noise2D.

this ( int x, int y, bool isCropped = true ) : float

Gets or sets a value in the noise map by its position.

보호된 메소드들

메소드 설명
Disposing ( ) : bool

Immediately releases the unmanaged resources used by this object.

Noise2D ( ) : System

Initializes a new instance of Noise2D.

비공개 메소드들

메소드 설명
GenerateCylindrical ( double angle, double height ) : double

Generates a cylindrical projection of a point in the noise map.

GeneratePlanar ( double x, double y ) : double

Generates a planar projection of a point in the noise map.

GenerateSpherical ( double lat, double lon ) : double

Generates a spherical projection of a point in the noise map.

메소드 상세

Clear() 공개 메소드

Clears the noise map.
public Clear ( ) : void
리턴 void

Clear() 공개 메소드

Clears the noise map.
public Clear ( float value ) : void
value float The constant value to clear the noise map with.
리턴 void

Dispose() 공개 메소드

Immediately releases the unmanaged resources used by this object.
public Dispose ( ) : void
리턴 void

Disposing() 보호된 메소드

Immediately releases the unmanaged resources used by this object.
protected Disposing ( ) : bool
리턴 bool

GenerateCylindrical() 공개 메소드

Generates a cylindrical projection of the noise map.
public GenerateCylindrical ( double angleMin, double angleMax, double heightMin, double heightMax ) : void
angleMin double The maximum angle of the clip region.
angleMax double The minimum angle of the clip region.
heightMin double The minimum height of the clip region.
heightMax double The maximum height of the clip region.
리턴 void

GeneratePlanar() 공개 메소드

Generates a planar projection of the noise map.
public GeneratePlanar ( double left, double right, double top, double bottom ) : void
left double The clip region to the left.
right double The clip region to the right.
top double The clip region to the top.
bottom double The clip region to the bottom.
리턴 void

GeneratePlanar() 공개 메소드

Generates a non-seamless planar projection of the noise map.
public GeneratePlanar ( double left, double right, double top, double bottom, bool isSeamless ) : void
left double The clip region to the left.
right double The clip region to the right.
top double The clip region to the top.
bottom double The clip region to the bottom.
isSeamless bool Indicates whether the resulting noise map should be seamless.
리턴 void

GenerateSpherical() 공개 메소드

Generates a spherical projection of the noise map.
public GenerateSpherical ( double south, double north, double west, double east ) : void
south double The clip region to the south.
north double The clip region to the north.
west double The clip region to the west.
east double The clip region to the east.
리턴 void

GetData() 공개 메소드

Gets noise map data.
public GetData ( bool isCropped = true, int xCrop, int yCrop, bool isNormalized = false ) : ].float[
isCropped bool Indicates whether to select the cropped (default) or uncropped noise map data.
xCrop int This value crops off data from the right of the noise map data.
yCrop int This value crops off data from the bottom of the noise map data.
isNormalized bool Indicates whether to normalize noise map data.
리턴 ].float[

GetNormalMap() 공개 메소드

Creates a normal map for the current content of the noise map.
public GetNormalMap ( float intensity ) : Texture2D
intensity float The scaling of the normal map values.
리턴 UnityEngine.Texture2D

GetNormalizedData() 공개 메소드

Gets normalized noise map data with all values in the set of {0..1}.
public GetNormalizedData ( bool isCropped = true, int xCrop, int yCrop ) : ].float[
isCropped bool Indicates whether to select the cropped (default) or uncropped noise map data.
xCrop int This value crops off data from the right of the noise map data.
yCrop int This value crops off data from the bottom of the noise map data.
리턴 ].float[

GetTexture() 공개 메소드

Creates a grayscale texture map for the current content of the noise map.
public GetTexture ( ) : Texture2D
리턴 UnityEngine.Texture2D

GetTexture() 공개 메소드

Creates a texture map for the current content of the noise map.
public GetTexture ( Gradient gradient ) : Texture2D
gradient Gradient The gradient to color the texture map with.
리턴 UnityEngine.Texture2D

Noise2D() 보호된 메소드

Initializes a new instance of Noise2D.
protected Noise2D ( ) : System
리턴 System

Noise2D() 공개 메소드

Initializes a new instance of Noise2D.
public Noise2D ( int size ) : System
size int The width and height of the noise map.
리턴 System

Noise2D() 공개 메소드

Initializes a new instance of Noise2D.
public Noise2D ( int size, ModuleBase generator ) : System
size int The width and height of the noise map.
generator ModuleBase The generator module.
리턴 System

Noise2D() 공개 메소드

Initializes a new instance of Noise2D.
public Noise2D ( int width, int height ) : System
width int The width of the noise map.
height int The height of the noise map.
리턴 System

Noise2D() 공개 메소드

Initializes a new instance of Noise2D.
public Noise2D ( int width, int height, ModuleBase generator ) : System
width int The width of the noise map.
height int The height of the noise map.
generator ModuleBase The generator module.
리턴 System

this() 공개 메소드

Gets or sets a value in the noise map by its position.
public this ( int x, int y, bool isCropped = true ) : float
x int The position on the x-axis.
y int The position on the y-axis.
isCropped bool Indicates whether to select the cropped (default) or uncropped noise map data.
리턴 float

프로퍼티 상세

AngleMax 공개적으로 정적으로 프로퍼티

public static double AngleMax
리턴 double

AngleMin 공개적으로 정적으로 프로퍼티

public static double AngleMin
리턴 double

Bottom 공개적으로 정적으로 프로퍼티

public static double Bottom
리턴 double

East 공개적으로 정적으로 프로퍼티

public static double East
리턴 double

Left 공개적으로 정적으로 프로퍼티

public static double Left
리턴 double

North 공개적으로 정적으로 프로퍼티

public static double North
리턴 double

Right 공개적으로 정적으로 프로퍼티

public static double Right
리턴 double

South 공개적으로 정적으로 프로퍼티

public static double South
리턴 double

Top 공개적으로 정적으로 프로퍼티

public static double Top
리턴 double

West 공개적으로 정적으로 프로퍼티

public static double West
리턴 double