C# 클래스 WebGame.Utility

파일 보기 프로젝트 열기: AdmiralPotato/ggj2013

공개 프로퍼티들

프로퍼티 타입 설명
Random System.Random

공개 메소드들

메소드 설명
ApproximatelyEqual ( double left, double right, double epsilon = 0.001 ) : bool
FromUnixTimestamp ( int unixTimestamp ) : System.DateTime

Creates a new System.DateTime from the specified timestamp (time measured in the number of seconds).

Magnitude ( this vector ) : double
Multiply ( this vector, double coefficient ) : Vector3
NormalizeOrientation ( this angle ) : double
NormalizeTurn ( this angle ) : double
PointToSegmentDistance ( Vector3 segmentBegin, Vector3 segmentEnd, Vector3 point ) : double
PrintTimeSpan ( this time, bool isInPast = true ) : string
Quadrance ( this vector ) : double
SphereIntersectsLineSegment ( Vector3 segmentBegin, Vector3 segmentEnd, Vector3 sphereCenter, double radius ) : bool
UnixTimestamp ( System.DateTime dateTime ) : int

Returns the specified time measured in the number of seconds.

randomBool ( ) : bool

비공개 메소드들

메소드 설명
_NormalizeAngle ( this angle, double lowerBound, double upperBound, double range = 2*Math.PI ) : double

메소드 상세

ApproximatelyEqual() 공개 정적인 메소드

public static ApproximatelyEqual ( double left, double right, double epsilon = 0.001 ) : bool
left double
right double
epsilon double
리턴 bool

FromUnixTimestamp() 공개 정적인 메소드

Creates a new System.DateTime from the specified timestamp (time measured in the number of seconds).
public static FromUnixTimestamp ( int unixTimestamp ) : System.DateTime
unixTimestamp int The timestamp that represents the date to be created.
리턴 System.DateTime

Magnitude() 공개 정적인 메소드

public static Magnitude ( this vector ) : double
vector this
리턴 double

Multiply() 공개 정적인 메소드

public static Multiply ( this vector, double coefficient ) : Vector3
vector this
coefficient double
리턴 Vector3

NormalizeOrientation() 공개 정적인 메소드

public static NormalizeOrientation ( this angle ) : double
angle this
리턴 double

NormalizeTurn() 공개 정적인 메소드

public static NormalizeTurn ( this angle ) : double
angle this
리턴 double

PointToSegmentDistance() 공개 정적인 메소드

public static PointToSegmentDistance ( Vector3 segmentBegin, Vector3 segmentEnd, Vector3 point ) : double
segmentBegin Vector3
segmentEnd Vector3
point Vector3
리턴 double

PrintTimeSpan() 공개 정적인 메소드

public static PrintTimeSpan ( this time, bool isInPast = true ) : string
time this
isInPast bool
리턴 string

Quadrance() 공개 정적인 메소드

public static Quadrance ( this vector ) : double
vector this
리턴 double

SphereIntersectsLineSegment() 공개 정적인 메소드

public static SphereIntersectsLineSegment ( Vector3 segmentBegin, Vector3 segmentEnd, Vector3 sphereCenter, double radius ) : bool
segmentBegin Vector3
segmentEnd Vector3
sphereCenter Vector3
radius double
리턴 bool

UnixTimestamp() 공개 정적인 메소드

Returns the specified time measured in the number of seconds.
public static UnixTimestamp ( System.DateTime dateTime ) : int
dateTime System.DateTime The System.DateTime to obtain the number of seconds from.
리턴 int

randomBool() 공개 정적인 메소드

public static randomBool ( ) : bool
리턴 bool

프로퍼티 상세

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

public static Random,System Random
리턴 System.Random