C# 클래스 Box2D.Common.Vec2

파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
X float
Y float

공개 메소드들

메소드 설명
Abs ( ) : Vec2

Return a new vector that has positive components.

Abs ( Vec2 a ) : Vec2
AbsLocal ( ) : void
AbsToOut ( Vec2 a, Vec2 result ) : void
Add ( Vec2 v ) : Vec2

Return the sum of this vector and another; does not alter either one.

AddLocal ( Vec2 v ) : Vec2

Add another vector to this one and returns result - alters this vector.

AddLocal ( float x, float y ) : Vec2

Adds values to this vector and returns result - alters this vector.

Clone ( ) : Vec2

Return a copy of this vector.

Cross ( Vec2 a, float s ) : Vec2
Cross ( float s, Vec2 a ) : Vec2
Cross ( Vec2 a, Vec2 b ) : float
CrossToOut ( Vec2 a, float s, Vec2 result ) : void
CrossToOut ( float s, Vec2 a, Vec2 result ) : void
CrossToOutUnsafe ( Vec2 a, float s, Vec2 result ) : void
CrossToOutUnsafe ( float s, Vec2 a, Vec2 result ) : void
Dot ( Vec2 a, Vec2 b ) : float
Equals ( Object obj ) : bool
GetHashCode ( ) : int
Length ( ) : float

Return the length of this vector.

LengthSquared ( ) : float

Return the squared length of this vector.

Max ( Vec2 a, Vec2 b ) : Vec2
MaxToOut ( Vec2 a, Vec2 b, Vec2 result ) : void
Min ( Vec2 a, Vec2 b ) : Vec2
MinToOut ( Vec2 a, Vec2 b, Vec2 result ) : void
Mul ( float a ) : Vec2

Return this vector multiplied by a scalar; does not alter this vector.

MulLocal ( float a ) : Vec2

Multiply this vector by a number and return result - alters this vector.

Negate ( ) : Vec2

Return the negation of this vector; does not alter this vector.

NegateLocal ( ) : Vec2

Flip the vector and return it - alters this vector.

NegateToOut ( Vec2 a, Vec2 result ) : void
Normalize ( ) : float

Normalize this vector and return the length before normalization. Alters this vector.

Set ( Vec2 v ) : Vec2

Set this vector to another vector.

Set ( float x, float y ) : Vec2

Set the vector component-wise.

SetZero ( ) : void

Zero out this vector.

Skew ( ) : Vec2

Get the skew vector such that dot(skew_vec, other) == cross(vec, other)

Skew ( Vec2 result ) : void

Get the skew vector such that dot(skew_vec, other) == cross(vec, other)

Sub ( Vec2 v ) : Vec2

Return the difference of this vector and another; does not alter either one.

SubLocal ( Vec2 v ) : Vec2

Subtract another vector from this one and return result - alters this vector.

ToString ( ) : String
Vec2 ( ) : System
Vec2 ( Vec2 toCopy ) : System
Vec2 ( float x, float y ) : System

비공개 메소드들

메소드 설명
FloatToIntBits ( float number ) : int

메소드 상세

Abs() 공개 메소드

Return a new vector that has positive components.
public Abs ( ) : Vec2
리턴 Vec2

Abs() 공개 정적인 메소드

public static Abs ( Vec2 a ) : Vec2
a Vec2
리턴 Vec2

AbsLocal() 공개 메소드

public AbsLocal ( ) : void
리턴 void

AbsToOut() 공개 정적인 메소드

public static AbsToOut ( Vec2 a, Vec2 result ) : void
a Vec2
result Vec2
리턴 void

Add() 공개 메소드

Return the sum of this vector and another; does not alter either one.
public Add ( Vec2 v ) : Vec2
v Vec2
리턴 Vec2

AddLocal() 공개 메소드

Add another vector to this one and returns result - alters this vector.
public AddLocal ( Vec2 v ) : Vec2
v Vec2
리턴 Vec2

AddLocal() 공개 메소드

Adds values to this vector and returns result - alters this vector.
public AddLocal ( float x, float y ) : Vec2
x float
y float
리턴 Vec2

Clone() 공개 메소드

Return a copy of this vector.
public Clone ( ) : Vec2
리턴 Vec2

Cross() 공개 정적인 메소드

public static Cross ( Vec2 a, float s ) : Vec2
a Vec2
s float
리턴 Vec2

Cross() 공개 정적인 메소드

public static Cross ( float s, Vec2 a ) : Vec2
s float
a Vec2
리턴 Vec2

Cross() 공개 정적인 메소드

public static Cross ( Vec2 a, Vec2 b ) : float
a Vec2
b Vec2
리턴 float

CrossToOut() 공개 정적인 메소드

public static CrossToOut ( Vec2 a, float s, Vec2 result ) : void
a Vec2
s float
result Vec2
리턴 void

CrossToOut() 공개 정적인 메소드

public static CrossToOut ( float s, Vec2 a, Vec2 result ) : void
s float
a Vec2
result Vec2
리턴 void

CrossToOutUnsafe() 공개 정적인 메소드

public static CrossToOutUnsafe ( Vec2 a, float s, Vec2 result ) : void
a Vec2
s float
result Vec2
리턴 void

CrossToOutUnsafe() 공개 정적인 메소드

public static CrossToOutUnsafe ( float s, Vec2 a, Vec2 result ) : void
s float
a Vec2
result Vec2
리턴 void

Dot() 공개 정적인 메소드

public static Dot ( Vec2 a, Vec2 b ) : float
a Vec2
b Vec2
리턴 float

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Length() 공개 메소드

Return the length of this vector.
public Length ( ) : float
리턴 float

LengthSquared() 공개 메소드

Return the squared length of this vector.
public LengthSquared ( ) : float
리턴 float

Max() 공개 정적인 메소드

public static Max ( Vec2 a, Vec2 b ) : Vec2
a Vec2
b Vec2
리턴 Vec2

MaxToOut() 공개 정적인 메소드

public static MaxToOut ( Vec2 a, Vec2 b, Vec2 result ) : void
a Vec2
b Vec2
result Vec2
리턴 void

Min() 공개 정적인 메소드

public static Min ( Vec2 a, Vec2 b ) : Vec2
a Vec2
b Vec2
리턴 Vec2

MinToOut() 공개 정적인 메소드

public static MinToOut ( Vec2 a, Vec2 b, Vec2 result ) : void
a Vec2
b Vec2
result Vec2
리턴 void

Mul() 공개 메소드

Return this vector multiplied by a scalar; does not alter this vector.
public Mul ( float a ) : Vec2
a float
리턴 Vec2

MulLocal() 공개 메소드

Multiply this vector by a number and return result - alters this vector.
public MulLocal ( float a ) : Vec2
a float
리턴 Vec2

Negate() 공개 메소드

Return the negation of this vector; does not alter this vector.
public Negate ( ) : Vec2
리턴 Vec2

NegateLocal() 공개 메소드

Flip the vector and return it - alters this vector.
public NegateLocal ( ) : Vec2
리턴 Vec2

NegateToOut() 공개 정적인 메소드

public static NegateToOut ( Vec2 a, Vec2 result ) : void
a Vec2
result Vec2
리턴 void

Normalize() 공개 메소드

Normalize this vector and return the length before normalization. Alters this vector.
public Normalize ( ) : float
리턴 float

Set() 공개 메소드

Set this vector to another vector.
public Set ( Vec2 v ) : Vec2
v Vec2
리턴 Vec2

Set() 공개 메소드

Set the vector component-wise.
public Set ( float x, float y ) : Vec2
x float
y float
리턴 Vec2

SetZero() 공개 메소드

Zero out this vector.
public SetZero ( ) : void
리턴 void

Skew() 공개 메소드

Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
public Skew ( ) : Vec2
리턴 Vec2

Skew() 공개 메소드

Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
public Skew ( Vec2 result ) : void
result Vec2
리턴 void

Sub() 공개 메소드

Return the difference of this vector and another; does not alter either one.
public Sub ( Vec2 v ) : Vec2
v Vec2
리턴 Vec2

SubLocal() 공개 메소드

Subtract another vector from this one and return result - alters this vector.
public SubLocal ( Vec2 v ) : Vec2
v Vec2
리턴 Vec2

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

Vec2() 공개 메소드

public Vec2 ( ) : System
리턴 System

Vec2() 공개 메소드

public Vec2 ( Vec2 toCopy ) : System
toCopy Vec2
리턴 System

Vec2() 공개 메소드

public Vec2 ( float x, float y ) : System
x float
y float
리턴 System

프로퍼티 상세

X 공개적으로 프로퍼티

public float X
리턴 float

Y 공개적으로 프로퍼티

public float Y
리턴 float