C# 클래스 CryEngine.Vec3

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

공개 프로퍼티들

프로퍼티 타입 설명
Down Vec3
Up Vec3
X float
Y float
Z float
Zero Vec3

공개 메소드들

메소드 설명
Clamp ( Vec3 value, Vec3 min, Vec3 max ) : Vec3

Restricts a value to be within a specified range.

Clamp ( Vec3 &value, Vec3 &min, Vec3 &max, Vec3 &result ) : void

Restricts a value to be within a specified range.

ClampLength ( float maxLength ) : void
ComponentMul ( Vec3 rhs ) : Vec3
CreateLerp ( Vec3 p, Vec3 q, float t ) : Vec3
CreateProjection ( Vec3 i, Vec3 n ) : Vec3
CreateReflection ( Vec3 i, Vec3 n ) : Vec3
CreateSlerp ( Vec3 p, Vec3 q, float t ) : Vec3
Cross ( Vec3 v ) : Vec3
Dot ( Vec3 v ) : float
Dot ( Vec3 v0, Vec3 v1 ) : float
Equals ( object obj ) : bool
Flip ( ) : void
GetDistance ( Vec3 vec1 ) : float
GetDistance2D ( Vec3 v ) : float
GetDistance2DSquared ( Vec3 v ) : float
GetDistanceSquared ( Vec3 vec1 ) : float
GetHashCode ( ) : int
GetRotated ( Vec3 center, Vec3 axis, float angle ) : Vec3
GetRotated ( Vec3 center, Vec3 axis, float cosa, float sina ) : Vec3
GetRotated ( Vec3 axis, float angle ) : Vec3
GetRotated ( Vec3 axis, float cosa, float sina ) : Vec3
IsEquivalent ( Vec3 v1, float epsilon = 0.05f ) : bool
IsUnit ( float epsilon = 0.05f ) : bool
IsZero ( float epsilon = 0f ) : bool
Max ( Vec3 left, Vec3 right ) : Vec3

Returns a vector containing the largest components of the specified vectors.

Max ( Vec3 &left, Vec3 &right, Vec3 &result ) : void

Returns a vector containing the smallest components of the specified vectors.

Min ( Vec3 left, Vec3 right ) : Vec3

Returns a vector containing the smallest components of the specified vectors.

Min ( Vec3 &left, Vec3 &right, Vec3 &result ) : void

Returns a vector containing the smallest components of the specified vectors.

Normalize ( ) : void
Parse ( string value ) : Vec3
SetLerp ( Vec3 p, Vec3 q, float t ) : void
SetProjection ( Vec3 i, Vec3 n ) : void

Project a point / vector on a (virtual) plane. Consider we have a plane going through the origin. Because d = 0 we need just the normal. The vector n is assumed to be a unit vector.

SetReflection ( Vec3 i, Vec3 n ) : void

Calculate a reflection vector. Vec3 n is assumed to be a unit-vector.

SetSlerp ( Vec3 p, Vec3 q, float t ) : void
ToString ( ) : string

Returns a System.String that represents this instance.

Vec3 ( Quat q ) : System
Vec3 ( Vec2 v2 ) : System
Vec3 ( float f ) : System
Vec3 ( float vx, float vy, float vz ) : System
operator ( ) : Vec3
operator ( ) : bool
operator ( ) : float

메소드 상세

Clamp() 공개 정적인 메소드

Restricts a value to be within a specified range.
public static Clamp ( Vec3 value, Vec3 min, Vec3 max ) : Vec3
value Vec3 The value to clamp.
min Vec3 The minimum value.
max Vec3 The maximum value.
리턴 Vec3

Clamp() 공개 정적인 메소드

Restricts a value to be within a specified range.
public static Clamp ( Vec3 &value, Vec3 &min, Vec3 &max, Vec3 &result ) : void
value Vec3 The value to clamp.
min Vec3 The minimum value.
max Vec3 The maximum value.
result Vec3 When the method completes, contains the clamped value.
리턴 void

ClampLength() 공개 메소드

public ClampLength ( float maxLength ) : void
maxLength float
리턴 void

ComponentMul() 공개 메소드

public ComponentMul ( Vec3 rhs ) : Vec3
rhs Vec3
리턴 Vec3

CreateLerp() 공개 정적인 메소드

public static CreateLerp ( Vec3 p, Vec3 q, float t ) : Vec3
p Vec3
q Vec3
t float
리턴 Vec3

CreateProjection() 공개 정적인 메소드

public static CreateProjection ( Vec3 i, Vec3 n ) : Vec3
i Vec3
n Vec3
리턴 Vec3

CreateReflection() 공개 정적인 메소드

public static CreateReflection ( Vec3 i, Vec3 n ) : Vec3
i Vec3
n Vec3
리턴 Vec3

CreateSlerp() 공개 정적인 메소드

public static CreateSlerp ( Vec3 p, Vec3 q, float t ) : Vec3
p Vec3
q Vec3
t float
리턴 Vec3

Cross() 공개 메소드

public Cross ( Vec3 v ) : Vec3
v Vec3
리턴 Vec3

Dot() 공개 메소드

public Dot ( Vec3 v ) : float
v Vec3
리턴 float

Dot() 공개 정적인 메소드

public static Dot ( Vec3 v0, Vec3 v1 ) : float
v0 Vec3
v1 Vec3
리턴 float

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

Flip() 공개 메소드

public Flip ( ) : void
리턴 void

GetDistance() 공개 메소드

public GetDistance ( Vec3 vec1 ) : float
vec1 Vec3
리턴 float

GetDistance2D() 공개 메소드

public GetDistance2D ( Vec3 v ) : float
v Vec3
리턴 float

GetDistance2DSquared() 공개 메소드

public GetDistance2DSquared ( Vec3 v ) : float
v Vec3
리턴 float

GetDistanceSquared() 공개 메소드

public GetDistanceSquared ( Vec3 vec1 ) : float
vec1 Vec3
리턴 float

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetRotated() 공개 메소드

public GetRotated ( Vec3 center, Vec3 axis, float angle ) : Vec3
center Vec3
axis Vec3
angle float
리턴 Vec3

GetRotated() 공개 메소드

public GetRotated ( Vec3 center, Vec3 axis, float cosa, float sina ) : Vec3
center Vec3
axis Vec3
cosa float
sina float
리턴 Vec3

GetRotated() 공개 메소드

public GetRotated ( Vec3 axis, float angle ) : Vec3
axis Vec3
angle float
리턴 Vec3

GetRotated() 공개 메소드

public GetRotated ( Vec3 axis, float cosa, float sina ) : Vec3
axis Vec3
cosa float
sina float
리턴 Vec3

IsEquivalent() 공개 메소드

public IsEquivalent ( Vec3 v1, float epsilon = 0.05f ) : bool
v1 Vec3
epsilon float
리턴 bool

IsUnit() 공개 메소드

public IsUnit ( float epsilon = 0.05f ) : bool
epsilon float
리턴 bool

IsZero() 공개 메소드

public IsZero ( float epsilon = 0f ) : bool
epsilon float
리턴 bool

Max() 공개 정적인 메소드

Returns a vector containing the largest components of the specified vectors.
public static Max ( Vec3 left, Vec3 right ) : Vec3
left Vec3 The first source vector.
right Vec3 The second source vector.
리턴 Vec3

Max() 공개 정적인 메소드

Returns a vector containing the smallest components of the specified vectors.
public static Max ( Vec3 &left, Vec3 &right, Vec3 &result ) : void
left Vec3 The first source vector.
right Vec3 The second source vector.
result Vec3 When the method completes, contains an new vector composed of the largest components of the source vectors.
리턴 void

Min() 공개 정적인 메소드

Returns a vector containing the smallest components of the specified vectors.
public static Min ( Vec3 left, Vec3 right ) : Vec3
left Vec3 The first source vector.
right Vec3 The second source vector.
리턴 Vec3

Min() 공개 정적인 메소드

Returns a vector containing the smallest components of the specified vectors.
public static Min ( Vec3 &left, Vec3 &right, Vec3 &result ) : void
left Vec3 The first source vector.
right Vec3 The second source vector.
result Vec3 When the method completes, contains an new vector composed of the smallest components of the source vectors.
리턴 void

Normalize() 공개 메소드

public Normalize ( ) : void
리턴 void

Parse() 공개 정적인 메소드

public static Parse ( string value ) : Vec3
value string
리턴 Vec3

SetLerp() 공개 메소드

public SetLerp ( Vec3 p, Vec3 q, float t ) : void
p Vec3
q Vec3
t float
리턴 void

SetProjection() 공개 메소드

Project a point / vector on a (virtual) plane. Consider we have a plane going through the origin. Because d = 0 we need just the normal. The vector n is assumed to be a unit vector.
public SetProjection ( Vec3 i, Vec3 n ) : void
i Vec3
n Vec3
리턴 void

SetReflection() 공개 메소드

Calculate a reflection vector. Vec3 n is assumed to be a unit-vector.
public SetReflection ( Vec3 i, Vec3 n ) : void
i Vec3
n Vec3
리턴 void

SetSlerp() 공개 메소드

public SetSlerp ( Vec3 p, Vec3 q, float t ) : void
p Vec3
q Vec3
t float
리턴 void

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

Vec3() 공개 메소드

public Vec3 ( Quat q ) : System
q Quat
리턴 System

Vec3() 공개 메소드

public Vec3 ( Vec2 v2 ) : System
v2 Vec2
리턴 System

Vec3() 공개 메소드

public Vec3 ( float f ) : System
f float
리턴 System

Vec3() 공개 메소드

public Vec3 ( float vx, float vy, float vz ) : System
vx float
vy float
vz float
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : Vec3
리턴 Vec3

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

operator() 공개 정적인 메소드

public static operator ( ) : float
리턴 float

프로퍼티 상세

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

public static Vec3,CryEngine Down
리턴 Vec3

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

public static Vec3,CryEngine Up
리턴 Vec3

X 공개적으로 프로퍼티

The X component of the vector.
public float X
리턴 float

Y 공개적으로 프로퍼티

The Y component of the vector.
public float Y
리턴 float

Z 공개적으로 프로퍼티

The Z component of the vector.
public float Z
리턴 float

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

public static Vec3,CryEngine Zero
리턴 Vec3