phpBB API Documentation
Class

char_cube3d

class char_cube3d

Properties

$bitmap
$bitmap_width
$bitmap_height
$basis_matrix
$abs_x
$abs_y
$x
$y
$z
$letter

Methods

char_cube3d($bitmaps, $letter)

drawchar($scale, $xoff, $yoff, $img, $background, $colours)

Draw a character

range()

vectorlen($vector)

Vector length

normalize($vector, $length = 1)

Normalize

cross_product($vector1, $vector2)

sum($vector1, $vector2)

sum2($vector1, $vector2)

scale($vector, $length)

gen_poly($xoff, $yoff, $vec1, $vec2, $vec3, $vec4)

dimensions($size)

dimensions

Details

at line 1876
public char_cube3d($bitmaps, $letter)

Parameters

$bitmaps
$letter

at line 1962
public drawchar($scale, $xoff, $yoff, $img, $background, $colours)

Draw a character

Parameters

$scale
$xoff
$yoff
$img
$background
$colours

at line 2012
public range()

at line 2020
public vectorlen($vector)

Vector length

Parameters

$vector

at line 2028
public normalize($vector, $length = 1)

Normalize

Parameters

$vector
$length

at line 2039
public cross_product($vector1, $vector2)

Parameters

$vector1
$vector2

at line 2051
public sum($vector1, $vector2)

Parameters

$vector1
$vector2

at line 2058
public sum2($vector1, $vector2)

Parameters

$vector1
$vector2

at line 2065
public scale($vector, $length)

Parameters

$vector
$length

at line 2077
public gen_poly($xoff, $yoff, $vec1, $vec2, $vec3, $vec4)

Parameters

$xoff
$yoff
$vec1
$vec2
$vec3
$vec4

at line 2095
public dimensions($size)

dimensions

Parameters

$size