canvas-toy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Rect
Geometry
constructor
attributes
faces
add
Vertex
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
Hierarchy
Geometry
RectGeometry
Index
Constructors
constructor
Properties
attributes
faces
Methods
add
Vertex
generate
Flat
Normal
get
Triangle
ByIndex
get
Vertex
ByIndex
remove
Attribute
set
Attribute
Constructors
constructor
new
Rect
Geometry
(
gl
:
WebGLRenderingContext
)
:
RectGeometry
Parameters
gl:
WebGLRenderingContext
Returns
RectGeometry
Properties
attributes
attributes
:
object
Type declaration
flat
Normal
:
Attribute
normal
:
Attribute
position
:
Attribute
uv
:
Attribute
faces
faces
:
Faces
Methods
add
Vertex
add
Vertex
(
vertex
:
any
)
:
this
Parameters
vertex:
any
Returns
this
generate
Flat
Normal
generate
Flat
Normal
(
)
:
this
Returns
this
get
Triangle
ByIndex
get
Triangle
ByIndex
(
triangleIndex
:
number
)
:
Array
<
any
>
Parameters
triangleIndex:
number
Returns
Array
<
any
>
get
Vertex
ByIndex
get
Vertex
ByIndex
(
index
:
number
)
:
any
Parameters
index:
number
Returns
any
remove
Attribute
remove
Attribute
(
name
:
string
)
:
this
Parameters
name:
string
Returns
this
set
Attribute
set
Attribute
(
name
:
any
, attribute
:
Attribute
)
:
this
Parameters
name:
any
attribute:
Attribute
Returns
this
Generated using
TypeDoc