Documentation

Vector3f

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

Vector3f(number x, number y, number z)

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

Example

var vector3f = new Vector3f();

Properties

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

Functions

Vector3f.mul(Vector3f vec)

returns: Vector3f

Parameter

Name Type Description
vec Vector3f

Vector3f.div(Vector3f vec)

returns: Vector3f

Parameter

Name Type Description
vec Vector3f

Vector3f.sub(Vector3f vec)

returns: Vector3f

Parameter

Name Type Description
vec Vector3f

Vector3f.add(Vector3f vec)

returns: Vector3f

Parameter

Name Type Description
vec Vector3f

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.