ParametricSphereGeometry constructor
Implementation
factory ParametricSphereGeometry(num size, int u, int v ) {
sphere(double u,double v,Vector3 target ) {
u *= math.pi;
v *= 2 * math.pi;
final x = size * math.sin( u ) * math.cos( v );
final y = size * math.sin( u ) * math.sin( v );
final z = size * math.cos( u );
target.setValues( x, y, z );
}
return ParametricSphereGeometry.init( sphere, u, v );
}