Difference between revisions of "Class Module"

From SolarStrike wiki
Jump to: navigation, search
(Created page with "== new == '''class class.new([class baseclass])''' Create a new class. If baseclass is given, creates a child of it, and set the 'parent' variable to its base. This will '''...")
 
Line 13: Line 13:
  
 
The vector3d class contains metamethods for operations such as vector scaling and dot product.
 
The vector3d class contains metamethods for operations such as vector scaling and dot product.
 +
 +
See also: [[Vector3d Class]]

Revision as of 18:35, 29 May 2014

new

class class.new([class baseclass])

Create a new class. If baseclass is given, creates a child of it, and set the 'parent' variable to its base.

This will not call the constructor. That is what the __call operator on the returned class is for: to create an instance of the class.


vector3d

vector3d class.vector3d([number x, number y, number z])

Create a new table (class) of vector3d. If x, y and z are given, the new vector3d retains the given values.

The vector3d class contains metamethods for operations such as vector scaling and dot product.

See also: Vector3d Class