Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash In Action > Widgets

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-29-2005, 06:01 PM   #1
AVisioN
Registered User
 
Join Date: May 2003
Posts: 5
Default [Iso 3D] some experiments

For pixelByPixel and IsoDraw you`ll need flash 8.

IsoGrid is a "thing" wich i think could be taken further.

I really would appreciate some feedback.

See it here

Last edited by AVisioN; 12-29-2005 at 06:03 PM..
AVisioN is offline   Reply With Quote
Old 12-29-2005, 06:08 PM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

They're really nice AVisioN
__________________
(6)
senocular is offline   Reply With Quote
Old 12-29-2005, 06:29 PM   #3
AVisioN
Registered User
 
Join Date: May 2003
Posts: 5
Default

hi senocular - i hope you don`t mind that i`m trying to get feedback

Here a gift for you:
PHP Code:
import com.nomoremedia.utils.*

class 
com.nomoremedia.utils.VectorMath{
    
    static function 
length(v:Vector):Number{
        
        return 
Math.sqrt(v.x*v.v.y*v.v.z*v.z);          
        
    }
    
    static function 
normalize(v:Vector):Vector{
        
        var 
lngth length(v);

        var 
vector = new Vector();
        
        
vector.v.lngth
        
        
vector.v.lngth;
        
        
vector.v.lngth;

        return 
vector;
        
    }
    
    static function 
sum(a:Vector,b:Vector):Vector{
        
        var 
vector = new Vector();
        
        
vector.a.b.x
        
        
vector.a.b.y
        
        
vector.a.b.z
        
        return 
vector;
        
    }
    
    static function 
difference(a:Vector,b:Vector):Vector{
        
        var 
vector = new Vector();
        
        
vector.a.b.x
        
        
vector.a.b.y
        
        
vector.a.b.z
        
        return 
vector;
        
    }
    
    static function 
scalarProduct(a:Vector,b:Vector):Number{
        
        return 
a.b.a.b.a.b.z;
        
    }
    
    static function 
crossProduct(a:Vector,b:Vector):Vector{
        
        var 
vector = new Vector();
        
        
vector.a.b.a.b.y
        
        
vector.a.b.a.b.z; ; 
        
        
vector.a.b.a.b.x; ; 

        return 
vector;        
        
    }
    

Here the Vector
PHP Code:
class com.nomoremedia.utils.Vector{
    
    private var 
_x:Number;
    
    private var 
_y:Number;
    
    private var 
_z:Number;
    
    public function 
Vector(x:Number,y:Number,z:Number){
        
        
_x _y _z 0;
        
        if(
!= null_x x;
        
        if(
!= null_y y;
        
        if(
!= null_z z;
        
    }
    
    public function 
get x():Number{
        
        return 
_x;
        
    }
    
    public function 
set x(x:Number):Void{
        
        
_x x;
        
    }
    
    public function 
get y():Number{
        
        return 
_y;
        
    }

    public function 
set y(y:Number):Void{
        
        
_y y;
        
    }
    
    public function 
get z():Number{
        
        return 
_z;
        
    }
    
    public function 
set z(z:Number):Void{
        
        
_z z;
        
    }
    
    public function 
toString():String{
        
        return 
"Vector{\n   x:"+_x+"\n"+"   y:"+_y+"\n"+"   z:"+_z+"\n}";
        
    }
    

I`m really young to OOP - but i think the world defines/calculates physics and not the "piece" of it. I saw three days ago that r.p. also has a (2d) vector class (beside of many others) and they all "teach" the Vector to "know" things..

Wouldn`t it take more memory if each Vector would be a little Mathgenie ?

Hmm... this is a crucial point for further development

PS: It could be that i hit Padova next year.
AVisioN is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Actionscript Experiments TjOeNeR Site Check 3 01-14-2005 12:42 AM
Flash MX 2004 new features, scripts experiments, unDocumented,.... farafiro General Chat 1 09-11-2003 08:49 AM
My Recent Work (experiments) Colin Campbell General Chat 16 09-04-2003 12:37 PM
Flash Experiments farafiro Cool Sites 2 02-28-2003 12:19 PM
my flash experiments site!!! zoomfreddy Site Check 15 03-13-2002 06:47 PM


All times are GMT. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.