Home Reference Source
public class | source

Vector4

Static Method Summary

Static Public Methods
public static

add(lv: Vector4, rv: Vector4): *

add value(static version)

public static

addWithOutW(lv: Vector4, rv: Vector4): *

add value except w component(static version)

public static

divide(vec4: Vector4, val: number): *

public static

divideVector(lvec4: Vector4, rvec4: Vector4): *

public static

multiply(vec4: Vector4, val: number): *

public static

multiplyVector(vec4: Vector4, vec: Vector4): *

public static

normalize(vec4: Vector4): *

public static

subtract(lv: Vector4, rv: Vector4): *

public static

zero(): *

Zero Vector

Constructor Summary

Public Constructor
public

constructor(x: number | TypedArray | Vector2 | Vector3 | Vector4, y: number, z: number, w: number)

Member Summary

Public Members
public get
public get

raw: *

public

v: TypedArray

public get
public set
public set
public get
public get
public set
public get
public set

Method Summary

Public Methods
public

add(v: Vector4): *

add value

public

add value except w component

public

clone(): *

public

divide(val: number): *

public

divideVector(vec4: Vector4): *

public
public

length(): *

public

multiply(val: number): *

public
public

normalize(): *

public

subtract(v: Vector4): *

public

toString(): *

Static Public Methods

public static add(lv: Vector4, rv: Vector4): * source

add value(static version)

Params:

NameTypeAttributeDescription
lv Vector4
rv Vector4

Return:

*

public static addWithOutW(lv: Vector4, rv: Vector4): * source

add value except w component(static version)

Params:

NameTypeAttributeDescription
lv Vector4
rv Vector4

Return:

*

public static divide(vec4: Vector4, val: number): * source

Params:

NameTypeAttributeDescription
vec4 Vector4
val number

Return:

*

public static divideVector(lvec4: Vector4, rvec4: Vector4): * source

Params:

NameTypeAttributeDescription
lvec4 Vector4
rvec4 Vector4

Return:

*

public static multiply(vec4: Vector4, val: number): * source

Params:

NameTypeAttributeDescription
vec4 Vector4
val number

Return:

*

public static multiplyVector(vec4: Vector4, vec: Vector4): * source

Params:

NameTypeAttributeDescription
vec4 Vector4
vec Vector4

Return:

*

public static normalize(vec4: Vector4): * source

Params:

NameTypeAttributeDescription
vec4 Vector4

Return:

*

public static subtract(lv: Vector4, rv: Vector4): * source

Params:

NameTypeAttributeDescription
lv Vector4
rv Vector4

Return:

*

public static zero(): * source

Zero Vector

Return:

*

Public Constructors

public constructor(x: number | TypedArray | Vector2 | Vector3 | Vector4, y: number, z: number, w: number) source

Params:

NameTypeAttributeDescription
x number | TypedArray | Vector2 | Vector3 | Vector4
y number
z number
w number

Public Members

public get className: * source

public get raw: * source

public v: TypedArray source

public get w: number source

public set w: number source

public set x: number source

public get x: number source

public get y: number source

public set y: number source

public get z: number source

public set z: number source

Public Methods

public add(v: Vector4): * source

add value

Params:

NameTypeAttributeDescription
v Vector4

Return:

*

public addWithOutW(v: Vector4 | Vector3): * source

add value except w component

Params:

NameTypeAttributeDescription
v Vector4 | Vector3

Return:

*

public clone(): * source

Return:

*

public divide(val: number): * source

Params:

NameTypeAttributeDescription
val number

Return:

*

public divideVector(vec4: Vector4): * source

Params:

NameTypeAttributeDescription
vec4 Vector4

Return:

*

public isEqual(vec: Vector4): boolean source

Params:

NameTypeAttributeDescription
vec Vector4

Return:

boolean

public length(): * source

Return:

*

public multiply(val: number): * source

Params:

NameTypeAttributeDescription
val number

Return:

*

public multiplyVector(vec: Vector4): * source

Params:

NameTypeAttributeDescription
vec Vector4

Return:

*

public normalize(): * source

Return:

*

public subtract(v: Vector4): * source

Params:

NameTypeAttributeDescription
v Vector4

Return:

*

public toString(): * source

Return:

*