Documentation

Vector4f

Constructible This class can be instantiated from your script. You can find more information on the Constructor below. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You cannot add your own properties to instances of this class. They will not be saved and can cause undefined behavior.

Constructor

Vector4f(number x, number y, number z, number w)

  • x: optional X value
  • y: optional Y value
  • z: optional Z value
  • w: optional W value

Example

var vector4f = new Vector4f();

Properties

Name Type Description
x number X value
y number Y value
z number Z value
w number W value
length number read only length of the Vector4f

Functions

Vector4f.mul(Vector4f vec)

returns: Vector4f

Parameter

Name Type Description
vec Vector4f

Vector4f.div(Vector4f vec)

returns: Vector4f

Parameter

Name Type Description
vec Vector4f

Vector4f.sub(Vector4f vec)

returns: Vector4f

Parameter

Name Type Description
vec Vector4f

Vector4f.add(Vector4f vec)

returns: Vector4f

Parameter

Name Type Description
vec Vector4f

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.