de.mirell.m3d
class CVertex
Object
|
+--de.mirell.m3d.CVertex
Implemented Interfaces: IPositionable, IScaleable, IXMLSerializableAll Known Subclasses: CControlVertexclass CVertex extends Object
Standard Vertex representation.
The CVertex class provides methods to work with vertices. It holds the Vertex's position in Object, World, View and Screenspace.
- Author:Mirell Development
- Version:1.0.0
Field Documentation
Constructor Documentation
CVertex
public function CVertex (
Pos: CCoordinate)
Create a new CVertex using the supplied position as a base
- Parameters:
Pos Initial position of the Vertex.
Method Documentation
fromXML
public function fromXML (
value: XML): Void
Unserializes XML into the object
Object state is set according to XML.
- Specified by:fromXML in interface de.mirell.xml.serialization.IXMLSerializable
- Parameters:
value XML which represents the serialized form of the object
getPosition
public function getPosition (
): CCoordinate
Retrieves the current center point of the object
- Specified by:getPosition in interface IPositionable
- Returns:The center of the object
scale
public function scale (
Value: CCoordinate): Void
Scale the object in space
- Specified by:scale in interface IScaleable
- Parameters:
Value The amount to scale the object's x,y and z values using a CCoordinate
setPosition
public function setPosition (
Value: CCoordinate): Void
Sets initial position of the vertex
- Specified by:setPosition in interface IPositionable
- Parameters:
Value The new position. This also affects the ObjectSpaceCoordinates.
toString
public function toString (
): String
Converts the specified object to a string and returns it.
- Overrides:Object.toString in class Object
- Returns:A string.
toXML
public function toXML (
): XML
Serializes the object into XML
The current object state will be serialized. The fromXML method must be able to unserialize the XML.
- Specified by:toXML in interface de.mirell.xml.serialization.IXMLSerializable
- Returns:The XML which contains the serialized representation of the object
translate
public function translate (
Value: CCoordinate): Void
Translate the position of the object
- Specified by:translate in interface ITranslateable
- Parameters:
Value The amount to translate the object's position's x,y and z values using a CCoordinate
- CVertex.as, Last Modified: 03.09.2004 03:41:40