Package gwlpr.protocol.util

Examples of gwlpr.protocol.util.Vector3


        p.uShort = 2;
        p.uInt = 3;
        p.uLong = 4;
        p.single = 5.0F;
        p.vec2 = new Vector2(6.0F, 7.0F);
        p.vec3 = new Vector3(8.0F, 9.0F, 10.0F);
        p.vec4 = new Vector4(11.0F, 12.0F, 13.0F, 14.0F);
        p.dw3 = new WorldPosition(15.0F, 16.0F, 17.0F, 18);
        p.vint = 19;
        p.ascii = "20";
        p.utf16 = "21";
View Full Code Here


       
        @Override
        protected void put(ByteBuf buf, Object object)
                throws Exception
        {
            Vector3 vec = (Vector3)field.get(object);
            buf.writeFloat(vec.getX());
            buf.writeFloat(vec.getY());
            buf.writeFloat(vec.getZ());
        }
View Full Code Here

        }
       
        @Override
        protected Object get(ByteBuf buf)
        {
            return buf.readableBytes() >= 12 ? new Vector3(buf.readFloat(), buf.readFloat(), buf.readFloat()) : null;
        }
View Full Code Here

TOP

Related Classes of gwlpr.protocol.util.Vector3

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.