public class JSNative extends Object
JSNative
instance is available as global object named: Native.Constructor and Description |
---|
JSNative() |
Modifier and Type | Method and Description |
---|---|
ColorRGB |
newColorRGB()
Creates a new
ColorRGB instance. |
ColorRGB |
newColorRGB(float r,
float g,
float b)
Creates a new
ColorRGB instance. |
ColorRGBA |
newColorRGBA()
Creates a new
ColorRGBA instance. |
ColorRGBA |
newColorRGBA(float r,
float g,
float b,
float a)
Creates a new
ColorRGBA instance. |
Matrix3f |
newMatrix3()
Creates a new 3x3 identity matrix.
|
Matrix3f |
newMatrix3(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22)
Creates a new 3x3 matrix.
|
Matrix4f |
newMatrix4()
Creates a new 4x4 identity matrix.
|
Matrix4f |
newMatrix4(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33)
Creates a new 4x4 matrix.
|
Quaternion |
newQuaternion()
Creates a new identity quaternion (
x = 0 , y = 0 , z = 0 , w = 1 ). |
Quaternion |
newQuaternion(float x,
float y,
float z,
float w)
Creates a new quaternion.
|
Vector2f |
newVector2()
Creates a new 2D Vector with all components being zeros.
|
Vector2f |
newVector2(float x,
float y)
Creates a new 2D Vector.
|
Vector3f |
newVector3()
Creates a new 3D Vector with all components being zeros.
|
Vector3f |
newVector3(float x,
float y,
float z)
Creates a new 3D Vector.
|
Vector4f |
newVector4()
Creates a new 4D Vector with all components being zeros.
|
Vector4f |
newVector4(float x,
float y,
float z,
float w)
Creates a new 4D Vector.
|
public Vector2f newVector2()
public Vector2f newVector2(float x, float y)
x
- X component of the vector.y
- Y component of the vector.public Vector3f newVector3()
public Vector3f newVector3(float x, float y, float z)
x
- X component of the vector.y
- Y component of the vector.z
- Z component of the vector.public Vector4f newVector4()
public Vector4f newVector4(float x, float y, float z, float w)
x
- X component of the vector.y
- Y component of the vector.z
- Z component of the vector.w
- W component of the vector.public Matrix3f newMatrix3()
public Matrix3f newMatrix3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
m00
- 00
component of the matrixm01
- 01
component of the matrixm02
- 02
component of the matrixm10
- 10
component of the matrixm11
- 11
component of the matrixm12
- 12
component of the matrixm20
- 20
component of the matrixm21
- 21
component of the matrixm22
- 22
component of the matrixpublic Matrix4f newMatrix4()
public Matrix4f newMatrix4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
m00
- 00
component of the matrixm01
- 01
component of the matrixm02
- 02
component of the matrixm03
- 03
component of the matrixm10
- 10
component of the matrixm11
- 11
component of the matrixm12
- 12
component of the matrixm13
- 13
component of the matrixm20
- 20
component of the matrixm21
- 21
component of the matrixm22
- 22
component of the matrixm23
- 23
component of the matrixm30
- 30
component of the matrixm31
- 31
component of the matrixm32
- 32
component of the matrixm33
- 33
component of the matrixpublic Quaternion newQuaternion()
x = 0
, y = 0
, z = 0
, w = 1
).public Quaternion newQuaternion(float x, float y, float z, float w)
x
- X component of the quaterniony
- Y component of the quaternionz
- Z component of the quaternionw
- W component of the quaternionpublic ColorRGB newColorRGB()
ColorRGB
instance.ColorRGB
instance.public ColorRGB newColorRGB(float r, float g, float b)
ColorRGB
instance.r
- R component of the colorg
- G component of the colorb
- B component of the colorColorRGB
instance.public ColorRGBA newColorRGBA()
ColorRGBA
instance.ColorRGBA
instance.public ColorRGBA newColorRGBA(float r, float g, float b, float a)
ColorRGBA
instance.r
- R component of the colorg
- G component of the colorb
- B component of the colora
- Alpha component of the colorColorRGBA
instance.