CodingMath | applicable files from the Coding Math videos
kandi X-RAY | CodingMath Summary
kandi X-RAY | CodingMath Summary
This repo will house any applicable files from the Coding Math videos.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CodingMath
CodingMath Key Features
CodingMath Examples and Code Snippets
Community Discussions
Trending Discussions on CodingMath
QUESTION
I'm trying to learn WebGL (and some math from codingmath). The goal today is to draw a sine wave at any start and ending direction. Something like this:
I'm just missing something in my makePoints()
method. My points plot out oddly and I'm kinda dumbfounded on where to go next.
How do I fix my makePoints()
function, so that it will plot out the x and y coords of a sine wave.
ANSWER
Answered 2018-May-15 at 09:14The vertex buffer you provided, wasn't big enough. It should store 2 floats for x AND y (instead of 1)
I've rewritten it: (check the makePoints2)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CodingMath
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page