phpBB API Documentation
Class

phpbb\captcha\char_cube3d

class char_cube3d

Properties

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

Methods

__construct($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 32
public __construct($bitmaps, $letter)

Parameters

$bitmaps
$letter

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

Draw a character

Parameters

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

at line 168
public range()

at line 176
public vectorlen($vector)

Vector length

Parameters

$vector

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

Normalize

Parameters

$vector
$length

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

Parameters

$vector1
$vector2

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

Parameters

$vector1
$vector2

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

Parameters

$vector1
$vector2

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

Parameters

$vector
$length

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

Parameters

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

at line 251
public dimensions($size)

dimensions

Parameters

$size